Industrielle Fertigung
Industrielles Internet der Dinge | Industrielle Materialien | Gerätewartung und Reparatur | Industrielle Programmierung |
home  MfgRobots >> Industrielle Fertigung >  >> Manufacturing Technology >> Herstellungsprozess

Widerstände faul sortieren

Komponenten und Verbrauchsmaterialien

Arduino Nano R3
× 1
Widerstand 10k Ohm
× 1
Widerstand 1k Ohm
× 1
Widerstand 100 Ohm
× 1
Widerstand 100k Ohm
× 1
Widerstand 1 M Ohm
× 1
ElectroPeak 0,96" OLED 64x128 Anzeigemodul
× 1
Jumper (generisch)
× 1

Notwendige Werkzeuge und Maschinen

3D-Drucker (generisch)
Lötkolben (generisch)

Apps und Onlinedienste

Arduino-IDE

Über dieses Projekt

Hallo,

Sind Sie es leid, nach jedem abgeschlossenen Projekt in eine solche Situation zu geraten?

Sind Sie ein unordentlicher Typ, der zu faul ist, den Farbcode auf jedem Widerstand zu überprüfen, um sie nach Widerstand zu sortieren? Sind Sie so faul, dass selbst die Verwendung eines Multimeters zu viel ist? Dann könnte vielleicht eine Lösung für Sie dabei sein, das ultimative faule Ohmmeter!

Alles, was Sie brauchen, um dieses einfache Ohmmeter zu bauen, das den Wert Ihres unsortierten Widerstands überprüft, sind eine Reihe von Widerständen (diesmal bekannter Wert), ein Arduino und ein Display (ich habe für meins ein I2C-OLED-Display verwendet).

Wir verlassen uns dann auf die Spannungsteilergleichung, um den Wert eines unbekannten Widerstands in Reihe mit einem Widerstand mit einem bekannten Wert zu erhalten. Diese einfache Technik hat nur einen Nachteil. Je unterschiedlicher die beiden Widerstände sind, desto ungenauer ist unsere Messung. Um dieses Phänomen zu überwinden, müssen wir mehrere Widerstände verwenden und einen Code schreiben, der es dem Arduino ermöglicht, den am besten geeigneten Widerstand für die Berechnung des unbekannten Wertes auszuwählen.

Nach dieser Philosophie können wir das Ohmmeter nach den Schemata in der Abbildung unten bauen.

Wenn Sie ein I2C-Display verwenden, können Sie auch den Schaltplänen dafür folgen. Arduino Nano verwendet Pin A4 für SDA und A5 für SCL.

Konzentrieren wir uns nun auf den Kodierungsteil. Der von mir verwendete Code ist hier zu sehen:

#include #include #include  [...] int R1 =100;int R2 =1000;int R3 =10000;long R4 =100000;long R5 =1000000;long Rn;int D2 =2;int D3 =3;int D4 =4;int D5 =5;int D6 =6;float raw =0;float Vout =0;float Ru =0; int Analogohm =A0;void setup() { [...]}void loop() { pinMode(D2, OUTPUT); PinMode (D3, EINGANG); PinMode (D4, EINGANG); pinMode (D5, EINGANG); PinMode (D6, EINGANG); digitalWrite (D2, HOCH); raw =analogRead (Analogohm); Serial.println (roh); Serial.println("ref 1M"); Rn =R5; if (raw <350 || raw> 800) { digitalWrite (D2, LOW); PinMode (D2, EINGANG); PinMode (D3, AUSGANG); digitalWrite (D3, HOCH); raw =analogRead (Analogohm); Serial.println (roh); Serial.println("ref 100k"); Rn =R4; if (raw <350 || raw> 800) { digitalWrite (D3, LOW); PinMode (D3, EINGANG); pinMode (D4, AUSGANG); digitalWrite (D4, HOCH); raw =analogRead (Analogohm); Serial.println (roh); Serial.println("ref 10k"); Rn =R3; if (raw <350 || raw> 800) { digitalWrite (D4, LOW); PinMode (D4, EINGANG); pinMode (D5, AUSGANG); digitalWrite (D5, HOCH); raw =analogRead (Analogohm); Serial.println (roh); Serial.println("ref 1000"); Rn =R2; if (raw <350 || raw> 800) { digitalWrite (D5, LOW); pinMode (D5, EINGANG); pinMode (D6, AUSGANG); digitalWrite (D6, HOCH); raw =analogRead (Analogohm); Serial.println (roh); Serial.println("ref 100"); Rn =R1; } } } } Vout =5*(raw/1024); Ru =(Rn*Vout)/(5 – Vout); wenn (Ru <10 || Ru <70) { Ru =10 * rund (Ru/10); } sonst, wenn (Ru <100 || Ru <700) { Ru =100 * Runde (Ru/100); } else if (Ru <1000 || Ru <7000) { Ru =1000 *round(Ru/1000); } else if (Ru <10000 || Ru <70000) { Ru =10000 *round(Ru/10000); } else if (Ru <100000 || Ru <700000) { Ru =100000 *round(Ru/100000); } else if (Ru <1000000 || Ru <7000000) { Ru =1000000 *round(Ru/1000000); } Widerstand (Ru); Verzögerung(1000);}[...] 

Für den OLED-Bildschirm habe ich gerade die Adafruit-Bibliothek verwendet. Sie müssen es nur über den Bibliotheksmanager der Arduino-IDE herunterladen und den benötigten Code kopieren. Ich habe zwei Bitmaps verwendet, nur um das Lesen schöner zu machen. Sie können Ihre Bitmap einfach hinzufügen oder die von mir hinzugefügte ersetzen.

Für den Ohmmeter-Teil müssen Sie stattdessen verstehen, wie dies funktioniert, da Sie es abhängig davon ändern können, wie viele Widerstände Sie als Referenzwerte verwenden.

Sobald der Code die Void-Schleife betritt, überprüft der Arduino die Spannung an Pin A0. Denn aus der Spannungsteilergleichung:

V0 =Vi*R2/(R1+R2)

Wenn R1 und R2 gleich sind, sollten wir V0 nahe 2,5 V haben (also 512 bei unserem 10-Bit-Lesen).

Wenn der Wert weit von diesen Ergebnissen entfernt ist, wechselt der Code zum nächsten Wert und so weiter, bis wir den nächsten Widerstand erhalten. Ist die Bedingung "Widerstand schließen" erfüllt, wird der Wert auf dem Display ausgedruckt.

HINWEIS #1: Bei jeder IF-Anweisung müssen wir den PinMode jedes digitalen Pins neu definieren, denn wenn Sie diesen als Ausgang behalten, verhält er sich wie ein Pin mit niedriger Impedanz und vermasselt unsere Messung an Pin A0.

Nachdem der richtige Widerstand ausgewählt wurde, wird der unbekannte Widerstandswert (Ru-Variable im Code) mit der Spannungsteilergleichung berechnet.

HINWEIS #2: Für dieses Gerät habe ich nur 5 Widerstände verwendet, aber wenn Sie möchten, können Sie für jeden digitalen Pin auf der Platine viel mehr Werte haben.

Das Foto unter dem auf einem Steckbrett aufgebauten System.

Für die eigentliche Anwendung müssen wir nun eine Art Box bauen, in die wir den unbekannten Widerstand einstecken können und das Ergebnis wird auf dem Bildschirm angezeigt.

Die von mir gefertigte Box lässt sich ganz einfach mit einem 3D-Drucker ausdrucken und alle Teile lassen sich mit einer Klebepistole zusammenkleben. Einige Lötarbeiten an den bekannten Widerständen waren erforderlich, um alles in einem kleinen Volumen unterzubringen.

Nur noch eines:Stecken Sie Ihre unsortierten Widerstände in diese winzigen Löcher und reinigen Sie Ihre Werkbank!

Viel Spaß und bis zum nächsten Tutorial.

BEARBEITEN:Ich habe den Rundungsteil des Codes geändert, da er beim Runden um 5k-Widerstände Fehler verursachen könnte. Mit dieser Änderung sollte das Problem behoben sein. Wie auch immer, das Hinzufügen eines 5k-Widerstands zu den Referenzen sollte das Problem überhaupt verhindern.

Code

  • Lazy-R-Messgerätcode
Lazy-R-Meter-CodeArduino
Dies ist der Code für das R-Meter. Es verwendet die adafruit-Bibliothek für OLED-Displays. Sie können die Bitmap ändern, wenn Sie möchten, und Referenzwiderstände in der Void-Schleife hinzufügen, um eine genauere Messung jedes unbekannten Widerstands zu ermöglichen.
#include #include #include #include #define SCREEN_WIDTH 128 // OLED-Display-Breite, in Pixel#define SCREEN_HEIGHT 64 // OLED-Display-Höhe, in Pixel// Deklaration für ein an I2C angeschlossenes SSD1306-Display ( SDA, SCL-Pins) #define OLED_RESET 4 // Reset-Pin # (oder -1 bei gemeinsamer Arduino-Reset-Pin)Adafruit_SSD1306-Anzeige (SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);const unsigned char myLOGO [] PROGMEM ={ 0x00, 0x00, 0x00 , 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x , 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x , 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xff 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 0xff, 0xf9, 0xff, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0xff, 0xff, 0x00, 0x7f, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x 0xff, 0xff, 0xe0, 0x00, 0x3f, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 0xfc, 0x00, 0x00, 0x0f, 0xfc, 0x 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 0xe0, 0x00, 0x00, 0x03, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0 0x00, 0x00, 0x01, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x7f, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0xff, 0xfe, 0x00, 0x00, 0xff, 0xc0x, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0xe0, 0x01, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff,3 0xf8, 0x01, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 0xfc, 0x00, 0xff, 0xf8, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xfc, 0x00, 0x3f, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x 0x0f, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xfc, 0x00, 0x01, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc0, 0x00, 0x7f, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0xff, 0xfc, 0 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xc0, 0x07, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xfc, 0x07, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x 0x00, 0x00, 0x00, 0x00, 0x07, 0xff, 0xfe, 0x07, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xfe, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xfe, 0x03, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xfe, 0x00, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xff, 0xe0, 0x3f, 00 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff, 0xfe, 0x0f, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x03, 0xff, 0xff, 0xe7, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xff, 0xc00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xff, 0xff, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x 0x00, 0x00, 0x01, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xff, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0xf0, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x 0x00, 0x01, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 , 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x , 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x , 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x , 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x , 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x , 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};const unsigned char myBitmap [] PROGMEM ={ 0x00, 0x00, 0x00, 0 , 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0 0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0 0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0 0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0 0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x 00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x60, 0x 0x01, 0xf8, 0x18, 0x00, 0x00, 0x00, 0x00, 0x07, 0x80, 0x00, 0x00, 0x07, 0x80, 0x18, 0x00, 0x 00, 0x03, 0xc0, 0x06, 0x00, 0x00, 0x00, 0x01, 0xf8, 0x60, 0x00, 0x00, 0x00, 0xf8, 0x0c, 0x00, 0x00, 0x00, 0x1f, 0x07, 0x00, 0x00, 0x00, 0x 0x18, 0x00, 0x00, 0x00, 0x0f, 0x03, 0x80, 0x00, 0x00, 0x07, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x7c, 0x1c, 0x00, 0x00, 0x00, 0x03, 0xe0, 0xe 0x00, 0xf0, 0x38, 0x00, 0x00, 0x00, 0x1e, 0x03, 0x80, 0x00, 0x00, 0x00, 0x3c, 0x60, 0x00, 0x00, 0x00, 0x0e, 0x38, 0x00, 0x00, 0x00, 0x03, 0xe 0x00, 0x00, 0x00, 0x0f, 0x9c, 0x00, 0x00, 0x00, 0x07, 0xc6, 0x00, 0x00, 0x00, 0x00, 0x38, 0x60, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x80, 0x00, 0 0x3f, 0xc0, 0x00, 0x00, 0x00, 0x07, 0x9c, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x,3 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x 00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};int R1 =100;int R2 =1000;int R3 =10000;long R4 =100000;long R5 =1000000;long Rn;int D2 =2;int D3 =3;int D4 =4;int D5 =5;int D6 =6;float raw =0;float Vout =0; float Ru =0;int Analogohm =A0;void setup () { Serial.begin (9600); if(!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) {Serial.println(F("SSD1306 Zuweisung fehlgeschlagen")); Pro(;;); } display.clearDisplay(); display.drawBitmap(0,0, myLOGO, 128, 64, WEISS); display.display(); Verzögerung (2000);} ungültige Schleife () { PinMode (D2, OUTPUT); PinMode (D3, EINGANG); PinMode (D4, EINGANG); pinMode (D5, EINGANG); PinMode (D6, EINGANG); digitalWrite (D2, HOCH); raw =analogRead (Analogohm); Serial.println (roh); Serial.println("ref 1M"); Rn =R5; if (raw <350 || raw> 800) { digitalWrite (D2, LOW); PinMode (D2, EINGANG); PinMode (D3, AUSGANG); digitalWrite (D3, HOCH); raw =analogRead (Analogohm); Serial.println (roh); Serial.println("ref 100k"); Rn =R4; if (raw <350 || raw> 800) { digitalWrite (D3, LOW); PinMode (D3, EINGANG); PinMode (D4, AUSGANG); digitalWrite (D4, HOCH); raw =analogRead (Analogohm); Serial.println (roh); Serial.println("ref 10k"); Rn =R3; if (raw <350 || raw> 800) { digitalWrite (D4, LOW); PinMode (D4, EINGANG); pinMode (D5, AUSGANG); digitalWrite (D5, HOCH); raw =analogRead (Analogohm); Serial.println (roh); Serial.println("ref 1000"); Rn =R2; if (raw <350 || raw> 800) { digitalWrite (D5, LOW); pinMode (D5, EINGANG); pinMode (D6, AUSGANG); digitalWrite (D6, HOCH); raw =analogRead (Analogohm); Serial.println (roh); Serial.println("ref 100"); Rn =R1; } } } } Vout =5*(raw/1024); Ru =(Rn*Vout)/(5 – Vout); wenn (Ru <10 || Ru <70) { Ru =10 * rund (Ru/10); } sonst, wenn (Ru <100 || Ru <700) { Ru =100 * Runde (Ru/100); } else if (Ru <1000 || Ru <7000) { Ru =1000 *round(Ru/1000); } else if (Ru <10000 || Ru <70000) { Ru =10000 *round(Ru/10000); } else if (Ru <100000 || Ru <700000) { Ru =100000 *round(Ru/100000); } else if (Ru <1000000 || Ru <7000000) { Ru =1000000 *round(Ru/1000000); } Widerstand (Ru); Verzögerung (1000);} Leerer Widerstand (langes Ru) { display.clearDisplay (); display.setTextSize(1); display.setTextColor (WEISS); display.setCursor(0,0); display.println(F("Hey, ")); display.println(F("der Widerstandswert ist")); display.setCursor(20,25); display.setTextSize(2); display.setTextColor (WEISS); display.print (Ru); display.print(F("Ohm")); display.drawBitmap(0,0, myBitmap, 128, 64, WEISS); display.display(); Verzögerung(2000);}

Kundenspezifische Teile und Gehäuse

Oberer Teil des Kontrollkästchens für den Lazy-Widerstand cap_yLoQKngMli.objUnterer Teil des Lazy Resistance Checkers box_AnzsFPqgfe.obj

Schaltpläne

Schaltpläne für Lazy-Widerstand-Messgeräte

Herstellungsprozess

  1. Pflanzenalarm bei Durstalarm
  2. italienische Wordclock
  3. Sigfox-kWh-Zähler
  4. Bluetooth-Temperaturüberwachung
  5. Gestengesteuerte Sperre
  6. Der Companion-IC
  7. USB-MIDI-Adapter
  8. Ein isolierter Analogeingang für Arduino
  9. Messen Sie Ihre Reaktionszeit
  10. Null-Ohm-Widerstand – Die Vorteile und Verwendungen von Jumper-Widerständen