Ganglion Hardware Connection to Raspberry Pi (SPI or UART)
Hi everyone!
I have been working with the Ganglion for a few months now and I'd like to connect it to my Raspberry Pi. However, I don't want to connect to it over bluetooth, which seems to be how most people are connecting the board to the pi. Instead, I'd like to use either an SPI or UART connection (preferably SPI) to connect the Simblee of the Ganglion to the Raspberry Pi's GPIO pins. The main reason for the hardware connection is to improve the sampling rate of the Ganglion (which is severely limited over bluetooth). I also have some other design ideas that require the hardware connection.
In trying to do this, I have ran into an interesting snag. I was able to connect the Ganglion to my PC over UART via an FTDI cable and view serial output from the Ganglion on the PC (including raw voltage data). However, when I tried to connect the same pins (RX and TX) to the corresponding pins on the Raspberry Pi, something really strange happens. I'm not sure what is happening internally, but the Ganglion seems to fail to output data over the UART connection. Moreover, the blue light on the board starts flashing faintly when its connected to the Pi, even before I turn the Ganglion on. When I do turn the Ganglion on, the blue light starts out blinking, but, after a few seconds, the light stays on solid without any blinking. This strange light show does not occur when I connect the Ganglion to my PC computer via UART through an FTDI cable.
My only guess is that output voltage of the GPIO pins on the Raspberry Pi is too high to be compatible with the Ganglion, which is overloading the Ganglion. However, this conclusion really doesn't make any sense, as the Raspberry Pi's GPIO pins output 3.3 volts and the Simblee operates at 3.3 volts. Likewise, my FTDI cable is 3.3 volts and the Ganglion works fine with it and my computer.
Any thoughts as to why this might be happening?
Please note that I currently have my Raspberry Pi powered via a wall outlet, but I am not allowing anyone to wear the electrodes while it is being powered in this way. Once I get the connection working, I will get a battery pack for my Pi so it can be used to collect voltage data. If there are any other details that I have left out that might be helpful, please let me know.
Thanks!
Comments
The Ganglion outputs SPI for WiFi so just follow the WiFi master concepts and you’re done.