reeding Attiny with ESPeasy
Moderators: grovkillen, Stuntteam, TD-er
reeding Attiny with ESPeasy
Hello,
i am thinking about using an Attiny 45 or 85 to reed my rainbucket and make my ESP with ESPeasy get data off it as the Wemos D1 mini is on solar/battery power and needs to be in deepsleep most of the time.
Is this posssible? If so what do i need to set up? A dummy counter?
Does anyone know where i can find good information, how to set up Attiny? Or maybe even has done this project before?
i am thinking about using an Attiny 45 or 85 to reed my rainbucket and make my ESP with ESPeasy get data off it as the Wemos D1 mini is on solar/battery power and needs to be in deepsleep most of the time.
Is this posssible? If so what do i need to set up? A dummy counter?
Does anyone know where i can find good information, how to set up Attiny? Or maybe even has done this project before?
Re: reeding Attiny with ESPeasy
Hmm using an ESP in deep sleep on battery is really tricky.
Main problems:
- ESP may not always be in the lowest deep sleep power mode (and I have no idea why not, looks like it may also be silicon revision dependent)
- Lots of boards (incl. Wemos D1 mini) have an USB to serial chip on board, always consuming power
- pull-up and -down resistors needed on an ESP to properly boot may still consume quite a bit of current in deep sleep.
Maybe it is better to have an external chip which does the counting for you and let the ESP turn on periodically to fetch this count value.
To be honest, I don't know any chip right now which could be used for this.
But if you have an example, please link it here so we can look into it to how we can implement support for it.
Main problems:
- ESP may not always be in the lowest deep sleep power mode (and I have no idea why not, looks like it may also be silicon revision dependent)
- Lots of boards (incl. Wemos D1 mini) have an USB to serial chip on board, always consuming power
- pull-up and -down resistors needed on an ESP to properly boot may still consume quite a bit of current in deep sleep.
Maybe it is better to have an external chip which does the counting for you and let the ESP turn on periodically to fetch this count value.
To be honest, I don't know any chip right now which could be used for this.
But if you have an example, please link it here so we can look into it to how we can implement support for it.
Re: reeding Attiny with ESPeasy
hmm ok..
hmm. i`m too far in this projekt to rethink it all.
Its a weather station i pretty much just need in summer when solar power should be well enough. On my betteries its running for 5 days straight without deepsleep and sending once an hour. I think my set up should be well enough, when i can reducer consumtion with deep sleep. But ok its not perfect, i get it.
But to have deep sleep working i need "someone" else to count rain. so is there a chance to read an attiny with ESPeasy?
hmm. i`m too far in this projekt to rethink it all.
Its a weather station i pretty much just need in summer when solar power should be well enough. On my betteries its running for 5 days straight without deepsleep and sending once an hour. I think my set up should be well enough, when i can reducer consumtion with deep sleep. But ok its not perfect, i get it.
But to have deep sleep working i need "someone" else to count rain. so is there a chance to read an attiny with ESPeasy?
Re: reeding Attiny with ESPeasy
Yep, you could let an ATtiny act as an I2C slave and then we can make a very simple base plugin to read data from it.
Re: reeding Attiny with ESPeasy
thanks for your answer.
ok, so i ordered an Attiny 85-20 now.
I already have and BME280 on I2C. Do i have to put them both on same GPIO then? Or have 2 interfaces?
Or if both is wrong i probably should have the Attiny read the BME280 as well, which is probaly more difficult for me
Is this base plugin working over Rules? Is there any adivise on how to write it?
ok, so i ordered an Attiny 85-20 now.
I already have and BME280 on I2C. Do i have to put them both on same GPIO then? Or have 2 interfaces?
Or if both is wrong i probably should have the Attiny read the BME280 as well, which is probaly more difficult for me
Is this base plugin working over Rules? Is there any adivise on how to write it?
Re: reeding Attiny with ESPeasy
This base plugin still has to be written... but I was already planning to do so
So what you need to do, is make a small program to let the ATtiny act as a slave I2C device and let it count values on a switch press.
So what you need to do, is make a small program to let the ATtiny act as a slave I2C device and let it count values on a switch press.
Re: reeding Attiny with ESPeasy
ok ill wait
is there any chance you are writing a GSM tool as well any time soon? (asking for a second project)
is there any chance you are writing a GSM tool as well any time soon? (asking for a second project)
Who is online
Users browsing this forum: No registered users and 38 guests