Arduino to Raspbian

Hi,

I recently started working with connecting my Arduino Uno to my raspberry pi in serial so I could get sensor reading onto my web server. I started working with the serialport library of nodejs, and it works fine in the terminal.

My problem is, all of a sudden, the tty port 'ttyACM0' wasn't recognized by the terminal. Don't get me wrong, I checked and it was listed in the /dev folder, but if I tried to just list it and nothing else, or to do anything else with it, the terminal just told me there is no such file or directory.

If anyone could point me in the right direction on how to solve this, it would be greatly appreciated.

We need to see you Arduino code.

And please use the code button </>so your code looks like thisand is easy to copy to a text editor

You may get some ideas in this Python - Arduino demo

...R

The arduino code is the AnologSerial example, https://www.arduino.cc/en/Tutorial/AnalogReadSerial

The nodejs code is found at https://itp.nyu.edu/physcomp/labs/labs-serial-communication/lab-serial-communication-with-node-js/ and it used to work. I never did the WS stuff, only the serialport.

The error message in the raspberry pi just says that there is no ttyACMO. If I do ls /dev/tty* it is shown but if I do cd /dev and then ls ttyACMO it tells me there is no file.

If I try to edit it it makes a new file, but for other tty files it just tells me that I cannot edit a device file.

Thank you.

Sorry, I have no knowledge of Node.js

...R

Thanks anyway. The problem was mine and I was over thinking it. I was typing ACMO instead of ACM0.

:grinning:

eLion101:
I was typing ACMO instead of ACM0.

Welcome to the club :slight_smile:

...R

Haha I had this happen to me also, your next issue might be the one I also faced with my Pi interface, the number 0 can sometimes increase to 1 then 2 when your Arduino resets (I'm working with a Due). Here are two references that helped me out: