User Tools

Site Tools


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
raspberrypi:start [2018/03/20 23:24]
dwheele [Using Git and Jenkins]
raspberrypi:start [2020/06/25 16:27] (current)
dwheele [7-Inch 1024x600 Touch Screen]
Line 90: Line 90:
  
 https://openweathermap.org/forecast5 https://openweathermap.org/forecast5
 +
 +===== Weather Underground =====
 +
 +Switching to Weather Underground because they allow more frequent hits.
 +
 +List of possible conditions:
 +
 +https://www.wunderground.com/weather/api/d/docs?d=resources/phrase-glossary
  
 ===== Install PIP (Package Installer for Python ===== ===== Install PIP (Package Installer for Python =====
Line 196: Line 204:
 ===== Installing other packages ====== ===== Installing other packages ======
  
-sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose+For interpolation: 
 + 
 +sudo apt-get install python-numpy python-scipy python-matplotlib python-pandas python-sympy python-nose 
 + 
 +(There were others like "ipython" but they failed, so I removed them, and it worked anyway.) 
 + 
 + 
 +===== PCA9685 Servo Card ===== 
 + 
 +Purchased another Raspberry Pi ("Conner") received 1/22/2019. Purchased another MicroSD, installed Raspian on it. 
 + 
 +  * {{:raspberrypi:adafruit-16-channel-servo-driver-with-raspberry-pi.pdf|Instructions to use PCA9685 with Raspberry Pi}} 
 + 
 +After doing the installation, this successfully moved the servo: 
 + 
 +<code python> 
 +import time 
 + 
 +from adafruit_servokit import ServoKit 
 +kit = ServoKit(channels=16) 
 + 
 +kit.servo[0].angle = 135 
 +time.sleep(1) 
 +kit.servo[0].angle = 0 
 +time.sleep(1) 
 +kit.servo[0].angle = 45 
 +</code> 
 + 
 +''python3 test2.py'' 
 + 
 + 
 + 
 + 
 +===== 7-Inch 1024x600 Touch Screen ===== 
 + 
 +^Resolution|1024x600 (aspect ratio ~1.71 (128/75))| 
 +^Amazon|[[https://www.amazon.com/gp/product/B075QCXLPF/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1|Detail web page| 
 +^Version|v2.04| 
 +^Manufactuer|GeeekPi| 
 +^Size|SVGA Wide| 
 +^Purchased|1/14/2019| 
 + 
 +Purchased a 7-Inch 1024x600 Capacitive Touch Screen, which serves as a small HDMI monitor. Had to use regular monitor temporarily to set up configuration at ''/boot/config.txt''. Added these entries to support 1024x600: 
 + 
 +<code text> 
 +hdmi_group=2 
 +hdmi_mode=87 
 +hdmi_cvt 1024 600 60 3 0 0 0 
 +hdmi_force_hotplug=1 
 +</code> 
 + 
 +Later followed this: 
 + 
 +<code bash> 
 +git clone https://github.com/yoyojacky/52Pi.git 
 +cd ~/52Pi 
 +chmod +x restool.sh 
 +./restool.sh 
 +</code> 
 + 
 +Which further manipulated ''/boot/config.txt'' 
 + 
 +===== MCP4725 DAC ===== 
 + 
 +This is I2S compatible. Worked well the first time. The problem is that I need a lot of these, and normally you can only have two, selectible with an A0 address line. 
 + 
 +It is rated at 25 ma of output. Connected to aviation simulator instrument, it only consumed about 0.5 ma, so connected directly to it.  
 +  
 +https://www.adafruit.com/product/935 
 + 
 +This could be multiplexed. 
 + 
 +It can also be connected to an external op amp, e.g., LM358 
 + 
 +This shows simple comparator, and simple gain amp: https://www.youtube.com/watch?v=g3TybiZHQ-A 
 + 
 +==== Problem to use more than two ==== 
 + 
 +To get more than two, get a TCA9548a multiplexer. This allows 8 devices to connect, you hit the multiplexer with the number of the device to hit. Perhaps this means that I can have 16 DACs per Raspberry Pi. You can also have multiple multiplexers, each can respond on a different address themselves. It is also possible to get Raspberry Pi zeros for about $5 
 + 
 +https://learn.adafruit.com/adafruit-tca9548a-1-to-8-i2c-multiplexer-breakout 
 + 
 +===== To Code With C ===== 
 + 
 +Using "Geany" - an IDE which is installed and comes with Raspberry Pi. It is a GUI app, but can run it remotely from Windows via vnc server. 
 + 
 +**On Raspberry Pi** 
 + 
 +  * Run ''vncserver'' 
 +  * ''vncserver :1 -geometry 1920x1080''  to set up a larger window. 
 + 
 +**On Windows** 
 + 
 +  * Run VNC Client. Connect to pi 192.168.0.8. Login with "pi" credentials (regular ssh login). 
 +  * You can see the GUI. Launch Geany 
 + 
 +===== Trying VisualGDB ===== 
 + 
 +[9/21/2019] Because I'm doing more programming for the Raspberry Pi, decided to try VisualGDB. This is a go-between which lets you develop in Visual Studio C++, and then build/run on Raspberry Pi. 
 + 
 +  * https://visualgdb.com/download/
  
 +After reviewing some of this, it is very complicated. Trying to use Geany instead on the Raspberry Pi. The code for this is not that involved.
  
raspberrypi/start.1521588245.txt.gz · Last modified: 2018/03/20 23:24 by dwheele