jsphuebner / esp-egycounter

GNU General Public License v2.0
13 stars 2 forks source link

Schaltplan #3

Open micw opened 10 months ago

micw commented 10 months ago

Hallo Johannes,

ich bastel noch an meinem eigenen Lesekopf. Was hast du da vor dem ESP an Bauteilen? Gibt's davon einen Schaltplan?

Viele Grüße, Michael.

jsphuebner commented 10 months ago

Malst du mir einen? ;) "We then pass the signal to some signal conditioning circuitry. The circuit is supplied by 5V and consists of a 15k pull-up resistor (it took some scoping to find the best value), a 74ACT04 inverter TTL chip (because parts bin), a 470 ohm series resistor, a voltage limiting diode towards 3.3V, a 3.3V linear LDO, and finally an ESP8266 wifi module, doesn't really matter which flavour."

Fototransistor -> Pull-Up 15k -> TTL gate -> 470 Ohm -> ESP Rx

micw commented 10 months ago

Hoppla, das ist ganz schön viel Material ;-) Wenn du ausschließlich einen ESP8266 dranhängen willst, brauchst du nur nen Fototransistor, und nen Pullup-Widerstand und kannst das mit 3.3V laufen lassen. Inverter ist auch nicht nötig, man kann den Pin per Software invertieren.

Ich habe heute meinen Schaltplan in alter und neuer Version mal als Projekt verpackt: https://github.com/micw/ir-lesekopf

jsphuebner commented 10 months ago

Ja, funktioniert wohl auch. Ich glaube ich hatte ein paar Bitfehler mit dieser Variante. Der Inverter invertiert 2x :) Ich nutze ihn nur als Schmitt-Trigger

micw commented 10 months ago

Alles klar. Hatte auch überlegt, ob ich den Schmitt-Trigger noch mit einbaue. Aber am Oszi sieht das Signal schon sehr sauber auch nach dem Transistor, so dass ich drauf verzichtet habe.