November 3, 2022
Description
Solar Tracker (automatische Sonnennachführung) mit ESP8266
Bauteil aus mehreren Komponenten:
https://youtube.com/shorts/3H7bXHFrhLs https://youtube.com/shorts/aWV_FDncJ0U https://youtube.com/shorts/nriOb-VyIRw
With elektronics (POC) https://youtu.be/lPwXyKBjIJY https://youtube.com/shorts/HfT-7KAwiUI
Offen:
ADS1115 ADC Modul 16bit 4 Kanäle kompatibel mit Arduino und Raspberry Pi https://www.amazon.de/gp/product/B07TY3TSBG
L293D DIP16 Schrittmotortreiber Controller VIER KANAL MOTOR TREIBER IC 36 V 600 mA https://www.amazon.de/gp/product/B0817HXMBM
D1-Mini mit TASMOTA Software:
(Dank des in TASMOTA integrierten WebServers können die Werte auch ONLINE angesehen werden. (Open source firmware for ESP devices: https://tasmota.github.io/docs/) (Einrichten von ESP8266 / TASMOTA und diverse interessante Details zu D1-Mini: https://znil.net/index.php?title=ESP8266_Wemos_D1_Mini_mit_Tasmota_und_OLED_Display_I2C_SSH1106_und_4_Taster ))
rule1 ON ADS1115#A3 DO BACKLOG VAR6 %value% ; ADD6 300 ; VAR7 %value% ; SUB7 300; event my6=%VAR6%; event my7=%VAR7% endon ON ADS1115#A0 DO BACKLOG VAR1 %value%; ADD1 0 ; event my1=%VALUE% ENDON
rule2 ON event#my1 > %VAR6% DO backlog status 8; POWER3 ON ENDON ON event#my1 < %VAR7% DO backlog status 8 ;POWER4 ON ENDON
==> Nur links und rechts Schwenk...
pulsetime3 2
pulsetime4 2
timezone 99
{"I2CScan":"Device(s) found at 0x48"}
=> I2C Bus aktiviert und ADS1115 gefunden?
{"I2CDriver":"7,8,9,10,11,12,13,14,15,17,18,20,24,29,31,36,41,42,44,46,48"}
=> 13 muss aktiviert sein für ADS1115
(https://smile.amazon.de/-/en/gp/product/B07DFX9Q4G)
Teile:
5V Motor mit Getriebe, kurze Achse
1X https://www.amazon.de/gp/product/B081JM8CYJ
5V Motor mit Getriebe, langes Gewinde
1X https://www.amazon.de/gp/product/B07R8ZB2K5
Lager:
1X 7X3X5mm
Diverse M3 Schrauben (Innenvielzahn)
M3 Mutter für "Verschieber"
LDR:
4X https://www.amazon.de/dp/B082X5D6W1
Die Arbeit ist "work in progress", das bedeutet, die Elektronik muss noch verkabelt und programmiert werden.
(Wie https://www.instructables.com/DIY-Miniature-Solar-Tracker/)
An alle Downloader, die keine BOTS sind:
Über ein Make, ein Like oder einen Kommentar freue ich mich sehr! Auch (konstruktive) Kritik oder Erfahrungsaustausch ist willkommen!
Solar Tracker (automatic sun tracking) with ESP8266
Component made of several components:
Parts:
5V motor with gear, short axle
1X https://www.amazon.de/gp/product/B081JM8CYJ
5V motor with gear, long thread
1X https://www.amazon.de/gp/product/B07R8ZB2K5
Stock:
1X 7X3X5mm
Various M3 screws (internal multipoint)
M3 nut for "shifter
LDR:
4X https://www.amazon.de/dp/B082X5D6W1
The work is "work in progress", which means the electronics still need to be wired and programmed.
(Like https://www.instructables.com/DIY-Miniature-Solar-Tracker/)
To all downloaders who are not BOTS:
I am very happy about a make, a like or a comment! Also (constructive) criticism or exchange of experiences is welcome!
Sketch für ARDUINO:
int topleft;
int topright;
int downleft;
int downright;
int drehen;
int heben;
void setup() {
pinMode(8, OUTPUT); //Heben / Senken
pinMode(9, OUTPUT);
pinMode(11, OUTPUT); // Drehen
pinMode(12, OUTPUT);
Serial.begin(115200); // Öffnet die serielle Schnittstelle bei 115200 Bit/s:
}
void loop() {
downright = analogRead(A0);
topright = analogRead(A1);
downleft = analogRead(A2);
topleft = analogRead(A3);
drehen = topleft + downleft - topright - downright;
heben = topleft - downleft + topright - downright;
if (drehen < -50) { digitalWrite(12, HIGH); //Drehen digitalWrite(11, LOW); // } else
{ digitalWrite(12, LOW); //Drehen
}
if (drehen > 50) { digitalWrite(11, HIGH); //Drehen ein digitalWrite(12, LOW); // } else { digitalWrite(11, LOW); //Drehen aus } if (abs(drehen) < 50) {
if (heben > 20) {
digitalWrite(8, HIGH); //Heben
digitalWrite(9, LOW);
} else
{ digitalWrite(8, LOW); //Heben
}
if (heben < -20) { digitalWrite(9, HIGH); //Heben digitalWrite(8, LOW); } else
{ digitalWrite(9, LOW); //Heben
}
}
}
Category: Mechanical ToysLicense:
Creative Commons — Attribution