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...