Hi All! I would like to control DS with my Arduino Nano 33 IOT through Serial. After searching and testing codes from the other forum posts, I was unable to get any readings from the RX on DS. Attached is my wiring diagram:
The VS Code serial Monitor Extension works fine when simply printing from DS (For example hw.PrintLine("hello)), so thatâs not the problem.
Did I miss anything in the code that Iâm not aware of? I thought Serial would be the most straightforward way to communicate between Nano 33 IOT and DS and itâs still very hard for me to get it to work. Any advice would be greatly appreciated!
Iâd try a loopback test, connect tx to rx, and send something from the Daisy to itself. If it works, it tells you that somethingâs right about your setup, though it wouldnât tell you why the Arduino isnât heard.
EDIT: I copied your code into a file name uart.cpp, make returned:
uart.cpp: In function âint main()â:
uart.cpp:23:10: error: âclass daisy::UartHandlerâ has no member named âStartRxâ
23 | uart.StartRx();
| ^~~~~~~
make: *** [build/uart.o] Error 1
My libDaisy install is recent - is this code building correctly for you?
I believe my libDaisy is from a year ago and itâs building successfully. However, you are RIGHT about âstartRXâ. After commenting on that line with adding a couple of lines to âpollTXâ, I was able to get the loopback test working!
On the Arduino side, I should have used this predefined instance named âSerial1â instead of Serial. Now everything works. wohooo!