This shows you the differences between two versions of the page.
| 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:// | https:// | ||
| + | |||
| + | ===== Weather Underground ===== | ||
| + | |||
| + | Switching to Weather Underground because they allow more frequent hits. | ||
| + | |||
| + | List of possible conditions: | ||
| + | |||
| + | https:// | ||
| ===== 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 | + | For interpolation: |
| + | |||
| + | sudo apt-get install python-numpy python-scipy python-matplotlib python-pandas python-sympy python-nose | ||
| + | |||
| + | (There were others like " | ||
| + | |||
| + | |||
| + | ===== PCA9685 Servo Card ===== | ||
| + | |||
| + | Purchased another Raspberry Pi (" | ||
| + | |||
| + | * {{: | ||
| + | |||
| + | After doing the installation, | ||
| + | |||
| + | <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 | ||
| + | </ | ||
| + | |||
| + | '' | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ===== 7-Inch 1024x600 Touch Screen ===== | ||
| + | |||
| + | ^Resolution|1024x600 (aspect ratio ~1.71 (128/ | ||
| + | ^Amazon|[[https:// | ||
| + | ^Version|v2.04| | ||
| + | ^Manufactuer|GeeekPi| | ||
| + | ^Size|SVGA Wide| | ||
| + | ^Purchased|1/ | ||
| + | |||
| + | 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 ''/ | ||
| + | |||
| + | <code text> | ||
| + | hdmi_group=2 | ||
| + | hdmi_mode=87 | ||
| + | hdmi_cvt 1024 600 60 3 0 0 0 | ||
| + | hdmi_force_hotplug=1 | ||
| + | </ | ||
| + | |||
| + | Later followed this: | ||
| + | |||
| + | <code bash> | ||
| + | git clone https:// | ||
| + | cd ~/52Pi | ||
| + | chmod +x restool.sh | ||
| + | ./ | ||
| + | </ | ||
| + | |||
| + | Which further manipulated ''/ | ||
| + | |||
| + | ===== 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:// | ||
| + | |||
| + | 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:// | ||
| + | |||
| + | ==== 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, | ||
| + | |||
| + | https:// | ||
| + | |||
| + | ===== To Code With C ===== | ||
| + | |||
| + | Using " | ||
| + | |||
| + | **On Raspberry Pi** | ||
| + | |||
| + | * Run '' | ||
| + | * '' | ||
| + | |||
| + | **On Windows** | ||
| + | |||
| + | * Run VNC Client. Connect to pi 192.168.0.8. Login with " | ||
| + | * 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:// | ||
| + | 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. | ||