spectraphilic / wasp_sketches

Waspmote sketches develoded by our group
1 stars 0 forks source link

Do not power all the sensors at the same time #41

Closed jdavid closed 5 years ago

jdavid commented 5 years ago

the reason for the lemming board in the first place was that we should not power all sensors in the same time

johnhulth commented 5 years ago

With this i men we should not power high drain sensors at the same time. All I2C sesnors are very low drain, so that should be OK.

Max current on 3v3_sens and 5v_sens is 200 mA

Maxbotix ~100mA peak DS-2/ATMOS22 ~0.5mA DS18B20 1-4mA x 40 -> 40-160mA peak

i.e. Do not power Maxbotix and onewire at the same time.

jdavid commented 5 years ago

Now we're reading from one bus at a time. It makes the code easier to read as well. There's a delay after every line where a power switch is set to on, we should test and reduce these delays.

jdavid commented 5 years ago

done