Posts

Showing posts from October, 2024

esp32 ben sensor project start

Image
 esp32 ben sensor project start THis worked. But had to put a LED onto GPIO2 to see flashing . Only one led on esp32 board and it's solid red. /*********   Rui Santos   Complete project details at https://RandomNerdTutorials.com/vs-code-platformio-ide-esp32-esp8266-arduino/ *********/ #include <Arduino.h> #define LED 2 void setup () {   // put your setup code here, to run once:   Serial . begin ( 115200 ) ;   pinMode ( LED, OUTPUT ) ; } void loop () {   // put your main code here, to run repeatedly:   digitalWrite ( LED, HIGH ) ;   Serial . println ( "LED is on" ) ;   delay ( 1000 ) ;   digitalWrite ( LED, LOW ) ;   Serial . println ( "LED is off" ) ;   delay ( 100 ) ;

Near Final Ben sensor project

Image
 AP network working on IPhone as clients and receiving files and date appropriately. Here's the hardware: Below is Chrome on PC Then there's this on iPhone: Code is in pastebin here  Written in micropython in neovim.

Best ben project so far neovim used for editor mostly

Image
 Pi Pico on desk connects via AP network to PC which acts as HTML client Sensors on board get red via drop-down task list: See Thonny in background. Only used to link with pico and put micropyrthon code into pico and run it. Some of the print statements outputs are visible at the bottom.  The code from nvim below.   Umin8Fork5.py in Ubuntu via PC. #Sun Sep 29 13:59:57 NZDT 2024.Sun Sep 29 18:09:57 NZDT 2024. #Sun l29 13:59:57 NZDT 2024.Sun Sep 29 18:09:57 NZDT 2024 #Umin3.py gets edited in Thonny via file explorer. Works. Oled OK #Next do SPI and SD card stff  Mon Sep 30 12:23:24 NZDT 2024.. import network import socket import machine import do_csv, do_log import sdcard  import os import onewire, ds18x20, time adcpin = 4 sensor = machine.ADC(adcpin) file = open("temps.txt", "w") rtc=machine.RTC() timestamp=rtc.datetime() #temperature = 27 - (reading - 0.706)/0.001721 #rtc.datetime((2020, 1, 21, 2, 10, 32, 36, 0)) timestring="%04d-%02d-%02d %02d:%02d:%02d"%...