Posts

Showing posts from March, 2018

RPi books + project/ lesson websites

Useful books and websites about RPi, which I have access to. Have Raspberry Pi Hacks (2014)  code examples in github Kindle Unlimited Electronic Projects for Raspberry Pi Book 1 - Interfacing to LED displays, speakers and simple sensors , Seggy Segran  Basics + projects, LEDs , 7 segment display, music, Moisture Alarm, + Electronic Projects for Raspberry Pi Book 2 - Interfacing to Analogue signals Raspberry PI3: Enchanted Guide for Starters- Beginner to Pro , Thomas Charleston special interest: Image 21 Smart agriculture web application (location 757) Raspberry Pi 3: Beginner to Pro Guide , Timothy Short good general info beyond usual basics Websites http://www.toptechboy.com/raspberry-pi-with-linux-lessons/  Lessons 27&28 are about PWM and are good

Traffic Light Apps

Traffic light is a simple popular teaching application. Not surprising traffic light applications come up with Raspberry Pi in various ways as described here. Usual Traffic Light :   Red=Stop,  Yellow=Warning,  Green=Go  but still these traffic lights do not work the same way in all countries.   Ex:  Austrian traffic light  vs  US traffic light    Trivia :  History of the Traffic Light Options(HW/SW) for traffic lights on RPi:  LEDs using just GPIOs  - 3 LEDs on different GPIO pins  Step 1: 1 Blinking LED Gordon Projects  1: A single LED   (command shell, photos/Fritz) Raspberry Pi Things   RPi Blinking LED   (command shell, breadboard/ pin photos) Project 2: Flashing Single LED (Python, Fritz) Alternate Python example Introduction to accessing the Raspberry Pi's GPIO in C++ (sysfs) Blinking LED on Raspberry Pi using C Creating a “Blinking LED” project for Raspberr...

RGB LED, LED dimmers, and PWM (raw linked list)

RGB LED: RASPBERRY PI 3: RGB LED COLOR EFFECT WITH PWM CYCLE AN RGB LED THROUGH THE COLOUR SPECTRUM USING A RASPBERRY PI 2 AND SCRATCH How to Use an RGB multicolor LED with Pulse Width Modulation (PWM) on the Raspberry Pi LED dimmer / motor speed : Raspberry Pi Linux LESSON 27: PWM Output on GPIO Pins from Python   (good!) RASPBERRY PI LESSON 31: MAKING A DIMABLE LED WITH PYTHON How to use soft PWM in RPi.GPIO 0.5.2a pt 2 – led dimming and motor speed control (Python)

Sensor: RFID (linked list)

Reading RFID Tags with Raspberry Pi #piday #raspberrypi @Raspberry_Pi

Sense Pi (linked list)

Sense Pi set-up : Check beforehand if each step is needed or was included in the current RPi set-up

Motors, pumps, generators (linked list)

Motors with Raspberry Pi, Arduino etc.DC motors, stepper motors, servo motors.... when to use what and how they differ. General: Raspberry Pi - How to control motors... DC Motors Controlling a DC Motor with the Raspberry Pi   Looks like what I need https://learn.adafruit.com/adafruit-raspberry-pi-lesson-9-controlling-a-dc-motor/lm293d Controlling DC Motors Using Python With a Raspberry Pi How to control a DC motor (or motors) using your Raspberry Pi Raspberry PI L298N Dual H Bridge DC Motor Sun Founder Lesson 7 How to Drive a DC Motor Stepper Motors https://learn.adafruit.com/adafruits-raspberry-pi-lesson-8-using-a-servo-motor/overview Raspberry Pi Stepper Motor Tutorial  Servo Motors Adafruit's Raspberry Pi Lesson 10. Stepper Motors Adafruit 16-Channel PWM / Servo HAT for Raspberry Pi - Mini Kit Forum Links Stack Exchange Raspberry Pi Electronics Stack Exchange Not Sure Raspberry Pi - How to control motors... Programming Raspberry Pi With CODESYS ...

SensePi C/C++ interface helps (linked list)

https://www.raspberrypi.org/forums/viewtopic.php?f=104&t=131903 https://github.com/moshegottlieb/libsense In works, but looks promising Pressure Sensor https://github.com/davebm1/c-sense-hat/blob/master/pressure.c From googling Sense hat in  C

Common Adafruit Sensors (list / linked list)

Ultrasound HC-SR04 Ultrasonic Range Sensor on the Raspberry Pi  (python,photos, theory) also see  Common Adafruit Sensors Air quality See post Common Adafruit Sensors for supporting code for: Accelerometers Gyroscope Light Magnetometers Barometric Pressure Humidity & Temperature Orientation

Interesting Sensors (list / linked list)

Sensor list Ultrasound HC-SR04 Ultrasonic Range Sensor on the Raspberry Pi  (python,photos, theory) also see  Common Adafruit Sensors Air quality RFID Also see post  Common Adafruit Sensors for supporting code for: Accelerometers Gyroscope Light Magnetometers Barometric Pressure Humidity & Temperature Orientation

RPi Initial set-up

There is software for many projects. The following will be listed by category and possibly later a mindMap. Following used with a Raspberry Pi 3 B, however most links are to general information. Initial Set-up SW and considerations for RPi 3B :  Raspbian on SD card   for more info RaspberryPi.org downloads to get NOOBS or Raspbian updating and upgrading Raspbian command:  sudo apt - get update Monitor If display comes up blank try uncommenting:  hdmi_force_unplug=1 in /boot/config.txt file.  Use sudo with your favorite editor. If simple doesn't work see post on Display Monitors. See  Which values are valid for my monitor? section for to see your current and best setting for your current display. RPi 7 inch LCD touch screen Recommended Power : RPi 3B 2.5A / 5.1V  General rule: Helps if not powering attachments via RPi board to avoid underpower Lighting Bolt:  means RPI is currently underpowered. Keyboard & Mouse...

RPi Mobile Robots (linked list)

https://learn.adafruit.com/ simple-raspberry-pi-robot/ overview  see my Adafruit wishlist for parts to buy for this simple robot. YouTube links Part 1: Getting started with Raspberry Pi Robotics

Sensor: Humidity (linked list)

Image
Plans test DHT11, DHT22 and SensePi Temperature and Humidity sensors and compare http://www.circuitbasics.com/ how-to-set-up-the-dht11- humidity-sensor-on-the- raspberry-pi/ https://github.com/netikras/r-pi_DHT11/blob/master/dht11.py  Works as is! Code is Python 2, but works under Python 3 only changing print statements. http://www.uugear.com/portfolio/dht11-humidity-temperature-sensor-module/ Info on how the values are read from the sensor, but Python code is broke and not even close. Interfacing  Temperature and Humidity Sensor (DHT11) with Raspberry Pi   (C, wiringPi) Original post 11/29/17 in private blog

Remote RPi - login, ssh, from laptop, etc (link list)

How to Control a Raspberry Pi Remotely From Anywhere In the World

Other RPi BLogs (link list)

Top 10 Raspbery Pi Blogs  Some great! But 2013 so some no longer active. Layout is nicer than this plain link list! [STATUS : Go through these 10 blogs for starting place] RPiBlog  useful !!

RPi Lego Connections (link list)

Control Lego Mindstorms through GPIO  (uses C-STEM Studio)

RPi3 Blinking LED

Image
Goal : Simple LED to Raspberry Pi 3 B wiring set-up to use with various tests like 4DIAC. Side Goal: Learn some basic electronics so not always asking EE with 4DIAC - how, why LED wiring used http://www.resistor-calculator.com/ LED Resistor Value Calculator    LED used is 5mm,  so chose a 330 Ohm resistor greater than minimum needed. Raspberry Pi 3 Model B v1.2 Pin layout 2 Tests for + output to LED: 1. Pin 1 = 3.3 V output to LED 2. Pin 7 Output to LED: GPIO04   Pin 6 GND was used for - output ground. https://www.jameco.com/Jameco/workshop/circuitnotes/raspberry-pi-circuit-note.html https://www.raspberrypi.org/documentation/usage/gpio-plus-and-raspi2/ sysfs from term command line What worked: To have authority to do commands sudo su [Note: sudo -i   for root environment, suggested, but internet posts indicate it can cause problems easier.] For GPIO pin using to test and change on/off: Test with GPIO4  (note: ...

Raspberry Pi things Intro

Image
Raspberry Pi things that might be useful to repeat or as step to something better. Post stages : (link list)  beginning to gathering info stage (notes)  making notes on what is needed both HW, SW, installs  (why) notes with reasons for choices (first tries) started testing, notes on how and how well it worked (how to) first documentation on how to at least one way (tutorial) refined description how-to repeat task