Week 6 Flashcards
how to deal with battery usage
start monitoring the battery voltage: it can give a low voltage warning so the battery can be replaced.
reducing clock frequency so the arduino runs slower
use arduino low power library to shut down the aruino for a given time or until an external event wakes it up
deep sleep and power down problems
it will not retain ram and will start with setu when waking up.
once in deep sleep the arduino can only wake up by an initilized interrupt
on power down mode the arduino needs a power cycle to wake up again
eeprom will help
what to do when using lithium ion batteries
use a protection circuit to prevent the battery from being damaged
digital vs analog (advanced)
analog works with resistance, digital works with sending digital info so is more complex
how to protect against overvoltage
add a zener diode that clamps output when the voltage is higher dan 5v
zener diode
zener diode: allows current to flow back when a certain reverse (zener) voltage is set
usefull for low power stabilized power supply rails
reference voltage circuits
overvoltage
Op-Amp
high gain voltage amplifiers (100000x)
boasts a very high input impedance on its inputs
input impedance
mostly parasitic resistance (i think this means resistance that influences the current when we do not want this to happen)
op-amp
has very high impedance, so you can add output loads that are high without it ifluencing the voltage divider
you can use it as a comparator, if the voltage connected to the + pin is lower than the voltage of an input, the output voltage will be low. (if its higher the output voltage willl be low)
level conversion
the sensor is using bi-directional communication ( can be achieved by using a mosFet and 2 resistors)
use when a sensor requires a different voltage than the arduino
sensor calibration why
sensors are not perfect: noise, resolution, hysteresis, offset, drift
optimal operation window
a window in which sensors operate the most optimal, like temperature or range. Check this
calibrating sensors
non-linearity can be calibrated using a mapping function
linear offset (add/substract values) and temperature drift(meaasure the drift and compensate in the program)
filters
shape input values into a desired output value, they filter out data at a certain frequency. this can be both in hardware and software
when filters in hardware