I have a 3.3v pro mini arduino board that I want to recv commands from a raspberry pi, possibly send acks or responses, that part less important than the first direction. Pro mini has no usb onboard and I do not want to add an ftdi or anything. I2c, spi, uart/serial should all be options, right? Which to use, and why?
The commands will be like 2-5 chars at a time, and once a minute or even less frequent. Any responses will probably be a 0/1 or Y/N single char, have not thought that far ahead yet
So, pi tx to arduino rx, pi rx to arduino tx, no level shifter or buffer, and use the Serial functions on arduino? I have a python serial lib for the pi side.
blah44:
So, pi tx to arduino rx, pi rx to arduino tx, no level shifter or buffer, and use the Serial functions on arduino? I have a python serial lib for the pi side.
In case of USB port, get a cheap USB TTL adapter for a few USD. The hard part if you use C/C++ on PI is to disable all the crappy terminal features of a serial port. If you use python, there seems to be an easy way to do it. What does the book author say (GM)?