TheThingsIndustries / generic-node-se

Generic Node Sensor Edition
https://www.genericnode.com
Other
108 stars 31 forks source link

lib,app: Defined power on times #155

Closed mcserved closed 3 years ago

mcserved commented 3 years ago

Summary:

I've changed the load switch function to include a delay instead of randomly doing a 100 ms delay each time. Closes #153.

Changes:

Notes for Reviewers:

Only basic, basic_lorawan, and secure_element_lorawan have changed.

Release Notes: (optional)

datasheet load switch page 6, since we use 2.8V (Ct open) it should be between 120 us and 200 us. image datasheet flash page 79 image datasheet se page 65 image datasheet sht page 4 image

Only the accelerometer did not have any time listed in the datasheet. It does mention times between operating modes (~1.6 ms), but no proper start up delay. I tested with a few parameters and saw that a delay of 5 ms was enough to get the accelerometer operational (I added 1 extra just to be safe). The other values were also tested (I moved the load switch functions just before initialisation and removed the UART functions for a proper test).