User Tools

Site Tools


projects:a4sim:raspberrypi:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
projects:a4sim:raspberrypi:start [2019/09/25 02:03]
dwheele
projects:a4sim:raspberrypi:start [2020/02/22 17:07] (current)
admin ↷ Links adapted because of a move operation
Line 5: Line 5:
   * Turned on I2C and VNCServer with ''sudo raspi-config''   * Turned on I2C and VNCServer with ''sudo raspi-config''
   * Set 192.168.0.8 as static IP in both Ethernet and WiFi.   * Set 192.168.0.8 as static IP in both Ethernet and WiFi.
 +  * Bought a clear case from Amazon with opening for large GPIO ribbon cable.
 +
 +Successful communicating with Arduino Nano Test Meter using I2C (ioctl library). [[writetoi2cexample|Writing to Nano Example]] Previously I tried using ''wiringPi'' but it can only read and write one byte at a time.
 +
 +Also was able to receive floats from X-Plane via UDP. [[listenforudpexample|Listening on UDP Example]]
  
 Although some success with compiling under Geany, having problems with Vector. Maybe std::vector is not compatible with my version of c++.  Although some success with compiling under Geany, having problems with Vector. Maybe std::vector is not compatible with my version of c++. 
Line 12: Line 17:
 Right now, able to run ''vncserver'' as the pi user, then connecting to it with VNC Viewer from normal workstation. Had to fiddle to get screen bigger. Connecting using alternate window 192.168.0.8:**2** Right now, able to run ''vncserver'' as the pi user, then connecting to it with VNC Viewer from normal workstation. Had to fiddle to get screen bigger. Connecting using alternate window 192.168.0.8:**2**
  
 +<code bash>
 +  vncserver :1 -geometry 1920x1080
 +</code>
 +
 +===== GPIO Diagram =====
 +
 +Connecting to the top 6 pin pairs of the GPIO bus. Only using these 5 pins
 +
 +  * 5V (Input - plenty of amps)
 +  * 3V (Input - Limited - using mostly for the level adjuster chip, don't short to ground!)
 +  * Ground
 +  * SDA  (I2C Data)
 +  * SCL (I2C Clock)
 +
 +
 +{{a4sim:raspberrypi:gpio-pinout-diagram-2.png|}}
 +
 +===== I2C =====
 +
 +===== i2cdetect =====
  
 +Use ''i2cdetect -y 1'' to list i2c devices listening on the Linux host.
  
  
projects/a4sim/raspberrypi/start.1569377012.txt.gz · Last modified: 2019/09/25 02:03 by dwheele