I would like to detect when the postman put mail in my box, so I was thinking about a simple attiny with tilt sensor (which would wake up the attiny) and a 433 MHz emitter:

enter image description here

The problem is that one cell coin (3V) is really low for this kind of emitter, it is good with at least 5V. So if I use two cell coins I have 6V and above max attiny voltage. If I plug it with one cell and emitter with two cells, the data pin will be only of 3V which is not good.

If I plug all on 6v, I have to use a zener diode or a classic diode to get below 5.5v but this diode will drain my battery even when the attiny is sleeping. How could I get a good voltage for the emitter without draining my battery?

  • \$\begingroup\$ This is a very broad class of challenge. You may want to use a very low quiescent current 3v3 regulator for the ATTiny, especially one with an enable where you can wire it to fire via a series capacitor and the switch and then have software hold it on as long as needed. In terms of translating the modulation signal level, you would have to understand the nature of the circuit you are driving. Note there are far better 433 MHz radios out there which will work fine on 3v3, from the likes of SiLabs or TI. Or you can go to LoRa. If range is not too far, maybe nRF24 clones. \$\endgroup\$ – Chris Stratton Dec 14 '18 at 15:20
  • \$\begingroup\$ The bigger issue is designing a data frame and decoding that frame at the receiver. Have you considered this aspect? \$\endgroup\$ – Andy aka Dec 14 '18 at 15:23
  • \$\begingroup\$ Decoding with the horrid regen receivers is indeed tricky, but I believe there are off-the-shelf Arduino or whatever libraries for that. One can get an example of viable data frames by looking at existing remote controls. But OOK is a primitive modulation, and theses SAW TX / Regen RX solutions are very crude compared to an SPI-interfaced synthesized digital packet radio with FSK (as well as OOK) capability like the Si443x or CC1101 or something with more advanced modulations like the SX127x or a garden variety 2.4 GHz chip like the nRF24L01+... all of the latter operate fine on 3v3. \$\endgroup\$ – Chris Stratton Dec 14 '18 at 15:27
  • \$\begingroup\$ @ChrisStratton indeed I'm using virtualwire lib in my home I have many of theese receviver emitter for my lights and heaters. If I change for another emitter, I would have to dedicate a receiver with special lib or special code managment for that. I would rather keep my virtualwire thing. I will have a look into a good 3.3v regulator but I have a doubt. \$\endgroup\$ – bodtx Dec 14 '18 at 15:33
  • \$\begingroup\$ The 3v3 regulator will be fine for the MCU, the questions you will need to solve are if you need to cut power to the transmit module when not in use, and how to translate the modulation signal - for that you'll have to electrically understand the input to the transmitter. A better 433 MHz radio like the Si443x or CC1101 can transmit an OOK frame compatible with what you are using now, it just isn't limited to that. \$\endgroup\$ – Chris Stratton Dec 14 '18 at 15:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.