low power door sensor

9 years 10 months ago #57 by Olov
low power door sensor was created by Olov
Hi,
i have created the low power arduino according to your tutorial, but now i cant get any printouts
using debug mode or Serial.print(), and it doesnot register at the GW so something is wrong. Does the changed clock change the baudrate and if so to what? Sorry for all the questions but i´m fairly new at this programming business. I have some unmodifed pro mini and they work fine.
Regards Olov

Please Log in or Create an account to join the conversation.

9 years 10 months ago #58 by EasyIoT
Replied by EasyIoT on topic low power door sensor

Olov wrote: Hi,
i have created the low power arduino according to your tutorial, but now i cant get any printouts
using debug mode or Serial.print(), and it doesnot register at the GW so something is wrong. Does the changed clock change the baudrate and if so to what? Sorry for all the questions but i´m fairly new at this programming business. I have some unmodifed pro mini and they work fine.
Regards Olov


You must compile and upload program under EasyIoT Sensor328p (1Mhz 1.8V) board. The speed of serial port will stay the same as defined in program. But you should not use speed above 9600 because they do not work correctly.

Please Log in or Create an account to join the conversation.

9 years 10 months ago #62 by Olov
Replied by Olov on topic low power door sensor
Thanks for the quick answer, i got the printouts to work now. But not the tempsensor.
The onewire library uses "delaymicroseconds" is this timing compromised when running at 1 Mhz (since 1Mhz = 1us)??
/Olov

Please Log in or Create an account to join the conversation.

9 years 10 months ago #64 by EasyIoT
Replied by EasyIoT on topic low power door sensor

Olov wrote: Thanks for the quick answer, i got the printouts to work now. But not the tempsensor.
The onewire library uses "delaymicroseconds" is this timing compromised when running at 1 Mhz (since 1Mhz = 1us)??
/Olov


Which temp sensor are you using? DHT22? Standard DHT22 library will not work at 1Mhz, because is not optimized. I wrote my own lib and it works at 1MZh, but DHT is not suitable for low power sensor. There are better sensors for low power.

Please Log in or Create an account to join the conversation.

9 years 10 months ago #70 by Olov
Replied by Olov on topic low power door sensor
Hi,
Im using Maxim DS18B20 and the OneWire library
/O

Please Log in or Create an account to join the conversation.

9 years 10 months ago #71 by EasyIoT
Replied by EasyIoT on topic low power door sensor

Olov wrote: Hi,
Im using Maxim DS18B20 and the OneWire library
/O


I have no experience with DS18B20 and Arduino at 1Mhz.
You lower Arduno frequency to lower operating voltage (not the power consumption). At 1MHZ it can easily operate at 1.8V. Minimum operating voltage for DS18B20 is 3V. Be careful when powering on battery. In my experience more suitable sensor is HTU21D which can operate down to 1.8V. I'm using 2 AA alkaline batteries without step up regulator and this sensor can easily operate couple of years without need to change batteries.

Please Log in or Create an account to join the conversation.

Time to create page: 0.230 seconds

Forum latest

  • No posts to display.