Posts

PICO and IOT comm options

PICO and IOT comm options     See excel table Pico W camera and image upload    Uses AWS  https://community.aws/concepts/getting-started-with-pico-w-iot-core How to Connect your Raspberry Pi Pico W to AWS IoT Core MQTT on Raspberry Pi (part 3): Sending sensor data from Raspberry Pi Pico to HiveMQ Cloud https://www.youtube.com/watch?v=O3T_AlA7atE Bolt IOT Cloud The Internet of Things (IoT): A practical guide   How to build a cellular IoT device with the Raspberry Pi Pico — part one, the hardware RPi Pico SDK C/C++ development on RP2040 microcontrollers MQTT on Raspberry Pi (part 3): Sending sensor data from Raspberry Pi Pico to HiveMQ Cloud Not supported by Arduino IDE / IOT Cloud TEST PLAN: Test stages: code, basic, set-up, plant fns, comm Components  PICO in Python under Thorny LEDs - complete Soil Sensor Distance - coded Pump Comm Components Arduino in C/C++ under Arduino IDE LEDs Soil Sensor Distance Pump Comm

More on PICO and IOT comm

 Raspberry Pi Pico W for IoT Project Using MicroPython and MQTT [ A Complete Guide ] Looks promising Set-up Tools->manage packages    search for sensor using.... Before installing Google and see if its something you really want to use did for HC-SR04 and looks like it put sensor into a class... nice but need to read more https://pimylifeup.com/wp-content/uploads/2018/03/Distance-Sensor-Fritz.png   Wiring uses resistors... needed for 5V or when? https://pimylifeup.com/wp-content/uploads/2018/03/Distance-Sensor-Fritz.png uses  high fmq cloud mqtt broker  HiveMQ (free service) connect and publish using this to subscribe Uses Red Node googled rednode and raspberry pi pico and mqtt results several videos here is just 1: https://www.youtube.com/watch?v=V5GmdTomtf4 https://www.youtube.com/watch?v=OHORqj5uWjU

PICO and pump

Motor Driver info Water Your Garden with IoT – Moisture Sensors  34.43 wiring in video (uses relay) Wiring 10. Plant Monitor in @SunFounder Controller https://docs.sunfounder.com/projects/kepler-kit/en/latest/iotproject/10.plant_monitor.html#plant-monitor-in-sunfounder-controller 3.6 shows wiring  including how to add power for the pump's motor. https://docs.sunfounder.com/projects/kepler-kit/en/latest/cproject/ar_pump.html#ar-pump Water Your Garden with IoT – Moisture Sensors  34.43 wiring in video (uses relay) PICO pump wiring with TA6586 (in kit) https://docs.sunfounder.com/projects/kepler-kit/en/latest/iotproject/10.plant_monitor.html https://docs.sunfounder.com/projects/kepler-kit/en/latest/iotproject/10.plant_monitor.html Code https://github.com/sunfounder/kepler-kit/blob/docs/docs/source/pyproject/py_pump.rst#id31

PICO getting started with microPython

  Getting started on Raspberry Pico with Bolt IoT (Windows) - Hackster.io   Water Your Garden with IoT – Moisture Sensors https://www.youtube.com/watch?v=Zy64kZEM_bg&list=PLWNDWPAClRVoo0Z-QtCkXuM15jdb2Q54N https://docs.sunfounder.com/projects/kepler-kit/en/latest/iotproject/10.plant_monitor.html IDE Thorny or Arduino IDE https://www.youtube.com/watch?v=NITPMh8LdWk  POWER https://www.raspberrypi-spy.co.uk/2021/01/pi-pico-pinout-and-power-pins/ https://www.cyber-omelette.com/2017/09/automated-plant-watering.html https://projects.raspberrypi.org/en/projects/getting-started-with-the-pico/6 https://www.youtube.com/watch?v=SL4_oU9t8Ss   Raspberry Pi Pico W LESSON 1: Write Your First Program for Absolute Beginners https://www.raspberrypi-spy.co.uk/2022/11/pi-pico-onboard-led/ https://forums.raspberrypi.com/viewtopic.php?t=231819 https://micropython.org/download/RPI_PICO/ https://www.youtube.com/watch?v=3-1ACAN7Xw0   Homework Solution: TopTechBoy Pi Pico,...

RGB LED

Image
Here is a code snippet. Works as expected !    # RGB LED on RPi import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) rPin = 37 gPin = 35 bPin = 33 GPIO.setup(rPin,GPIO.OUT) GPIO.setup(gPin,GPIO.OUT) GPIO.setup(bPin,GPIO.OUT) GPIO.output(rPin, 1 )   # Red GPIO.output(rPin, 0 )   # Green GPIO.output(gPin, 1 )   # Green

Revisiting Basics

Image
Using a Raspberry Pi 4 A blinking LED is the Hello World for physical computing.  Raspberry OS allows many ways to do this.  Here are 3 ways to Blink an LED from the RPi 4. Figure 1: Blinking LED wiring on RPi 4 (from Tutorial 3 below) (gpiozero)   Blinking LED Raspberry Pi Tutorial 1 This tutorial is great not just for blinking LED but also intro to "Physical Computing": Getting started with Breadboard. Resistor labeling code diagram included. Using a multimeter to test power provided by the RPi Understanding basic circuit first not controlled, then controlled by the RPi. Using Python from a command window, testing basics 1 line at a time. Intro to import gpiozero , a pre-installed on RPi library with import for basic needs like LEDs and buttons. from gpiozero import LED import time led = LED(17)  # GPIO17 led.on while True:      led.toggle()     time.sleep(1)      (GPIO)  Bl in king LED Raspberry Pi Tutorial 2 Alte...

Raspberry Pi 7" Touch Screen LCD

Image
Desired: A Raspberry Pi set-up that will fit in my purse. Parts Raspberry Pi 3 & Power supply Raspberry Pi 7" Touch Screen LCD Raspberry pi 7-inch lcd touch screen case , white or black New Raspberry Pi 7" Touch Screen LCD - Assembly Good video because it shows how to stablize the screen ribbon and close up of the pins to share power. A Raspberry Pi  Trouble Shooting  page is provided, but generally check all connections if not working. Touch Screen Case set-up Raspberry pi 7-inch lcd touch screen case , white Initially the image in this case is upside down (due to RPi firmware update). To change add:  lcd_rotate=2  to  /boot/config.txt using and your favorite editor  or sudo /bin/su -c "echo 'lcd_rotate=2' >> /boot/config.txt" Note: Some suggest using display_rotate , but the following  from Element14 forum explains  why lcd_rotate is better: "Don't use the documented display_rotate , it performs a pe...

RPi Camera V2 (link collection)

Set-up and first steps https://randomnerdtutorials.com/guide-to-raspberry-pi-camera-v2-module/ https://www.raspberrypi.org/documentation/usage/camera/ https://thepihut.com/blogs/raspberry-pi-tutorials/16021420-how-to-install-use-the-raspberry-pi-camera First projects https://projects.raspberrypi.org/en/projects/getting-started-with-picamera https://projects.raspberrypi.org/en/projects/push-button-stop-motion https://pimylifeup.com/raspberry-pi-time-lapse/ https://pimylifeup.com/raspberry-pi-security-camera/   (not sure all info is there) Color  recognition OpenCV Programming the Raspberry Pi:Tutorial-18 Identify Pixels with Given Color with Python C# Lego ball sorter using a Raspberry Pi & OpenCV Search in YouTube: raspberry pi opencv tutorial Object  recognition

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