Új hozzászólás Aktív témák

  • Janos250

    őstag

    válasz zsolti_20 #13619 üzenetére

    Igen, én ajánlottam, de már nagyon megbántam. Nem gondoltam, hogy belegabalyodsz. Még én se használtam, de a leírások alapján úgy tűnt, megy rendesen. Elolvastad a manualt, és a kódok leírását? Tudod, ha minden húr szakad, olvassuk el a használati utasítást. Ott ugyanis le van írva, hogy használható HID és USB-n sorosport üzemmódban. Ha nem akarod egyiket se, akkor jumperrel közvetlenül az UART-ját kötheted az arduino panelhoz. Van a neten számos leírás.
    Videó is van róla, igaz, valami hottentotta nyelven, de mutatja a bekötést.
    https://www.facebook.com/econtec/videos/572034406744537/

    Az arduino.cc-n is van róla szó:
    "Instead of soldering, you may be able to remove the two jumpers on the scanner and connect a cable between the pin marked S-RX to the TX of one of your mega's serial ports and also the pin marked S-TX to the RX of the same mega serial port.
    You need also a common ground connection between the mega and the scanner.
    Write a sketch to read the chosen mega serial port and write the data read (at 9600baud) to the serial console."
    Mutatja is, hol a lábak:
    https://forum.arduino.cc/index.php?action=dlattach;topic=692554.0;attach=370803

    Egy mintaprogram is van rá:

    void setup() {
     Serial.begin(19200) ;
     Serial.println("starting") ;
     Serial1.begin(9600) ;

    }

    void loop() {
       if (Serial1.available() > 0)     {
       Serial.print(char(Serial1.read()));     // !!! x 2
     }
    }

    Nem gondoltam, hogy ilyen galiba lesz belőle. :W

    [ Szerkesztve ]

    Az amerikaiak $ milliókért fejlesztettek golyóstollat űrbéli használatra. Az oroszok ceruzát használnak. Én meg arduinot.

Új hozzászólás Aktív témák