LowPowerLab Forum

Hardware support => General topics => Topic started by: cootcraig on March 18, 2014, 11:33:49 AM

Title: Source for short USB cable for MoteinoUSB <-> Raspberry Pi?
Post by: cootcraig on March 18, 2014, 11:33:49 AM
I want to make a small package of RPi and MoteinoUSB. Perhaps
velcroed together.
Title: Re: Source for short USB cable for MoteinoUSB <-> Raspberry Pi?
Post by: Felix on March 18, 2014, 11:58:25 AM
http://lowpowerlab.com/shop/USB-miniB ?
Title: Re: Source for short USB cable for MoteinoUSB <-> Raspberry Pi?
Post by: labusr on March 18, 2014, 12:28:21 PM
Quote from: cootcraig on March 18, 2014, 11:33:49 AM
short USB cable for MoteinoUSB <-> Raspberry Pi?

What are you using this for, is it the Raspberry Pi webserver with a Arduino gateway that Felix made the tutorial for?  Doesn't that use the SPI pins on the Arduino to talk to the SPI pins on the RPi? bad info

Or did you make the modification to use the USB port?
Title: Re: Source for short USB cable for MoteinoUSB <-> Raspberry Pi?
Post by: cootcraig on March 18, 2014, 12:31:21 PM
Quote from: Felix on March 18, 2014, 11:58:25 AM
http://lowpowerlab.com/shop/USB-miniB ?

Thanks, had not noticed that in the store.
Title: Re: Source for short USB cable for MoteinoUSB <-> Raspberry Pi?
Post by: cootcraig on March 18, 2014, 12:33:27 PM
Quote from: labusr on March 18, 2014, 12:28:21 PM
Quote from: cootcraig on March 18, 2014, 11:33:49 AM
short USB cable for MoteinoUSB <-> Raspberry Pi?
What are you using this for, is it the Raspberry Pi webserver with a Arduino gateway that Felix made the tutorial for?  Doesn't that use the SPI pins on the Arduino to talk to the SPI pins on the RPi?

Or did you make the modification to use the USB port?

For one of these
http://lowpowerlab.com/shop/moteino-r4-usb (http://lowpowerlab.com/shop/moteino-r4-usb)
Title: Re: Source for short USB cable for MoteinoUSB <-> Raspberry Pi?
Post by: Felix on March 18, 2014, 02:43:42 PM
Quote from: labusr on March 18, 2014, 12:28:21 PM
What are you using this for, is it the Raspberry Pi webserver with a Arduino gateway that Felix made the tutorial for?  Doesn't that use the SPI pins on the Arduino to talk to the SPI pins on the RPi?
Or did you make the modification to use the USB port?

Moteino talks serial to Pi, not SPI.
Title: Re: Source for short USB cable for MoteinoUSB <-> Raspberry Pi?
Post by: labusr on March 18, 2014, 10:58:55 PM
Quote from: Felix on March 18, 2014, 02:43:42 PM
Moteino talks serial to Pi, not SPI.

I think I've made the same mistake before when talking about how Moteino interfaces with the Raspberry Pi.  I don't quite understand it.  SPI is a serial bus, and uses pins 10, 11, 12, 13.  These are the MOSI and MISO stuff, right?

But Arduinos also have "serial" - which is pin 0 and pin 1.  These are the pins that get used when you connect the FTDI-USB adapter to do programming?  Do I have that right?  I might be a little confused.  I don't know where the serial pins are located.  In the picture on your tutorial, the Raspberry Pi is connected to the Moteino via the pins usually used for programming.
Title: Re: Source for short USB cable for MoteinoUSB <-> Raspberry Pi?
Post by: Felix on March 18, 2014, 11:07:25 PM
Serial generally implies UART, USART, and RS232.
SPI is also serial in principle (serial peripheral interface), but is not referred to as simply serial.
Title: Re: Source for short USB cable for MoteinoUSB <-> Raspberry Pi?
Post by: labusr on March 18, 2014, 11:19:50 PM
Quote from: Felix on March 18, 2014, 11:07:25 PM
Serial generally implies UART, USART, and RS232.
SPI is also serial in principle (serial peripheral interface), but is not referred to as simply serial.

On the Uno, SPI is specifically tied to certain pins (10-13).  Is UART/USART/RS232 tied to certain pins (like pin 1 and pin 2) on the Uno?

QuoteUsed for communication between the Arduino board and a computer or other devices. All Arduino boards have at least one serial port (also known as a UART or USART): Serial. It communicates on digital pins 0 (RX) and 1 (TX) as well as with the computer via USB.
Title: Re: Source for short USB cable for MoteinoUSB <-> Raspberry Pi?
Post by: Felix on March 19, 2014, 07:08:37 AM
Please see the Arduino specs. There is a UART on pins 0 and 1 on the Arduino.
RS232 is not == UART. It functions the same way as a protocol but it uses different voltage levels so they are not directly compatible and need a buffer chip like the max232.