Davide Gironi writes: The PWM frequency have to be selected in the way that the switch frequency is much higher than the dynamics of the motor. To avoid noise from the motor, the choosen PWM frequency is 20Khz. Which is a know to know frequency. So, with this one, you can drive up to 4 […]
Tag Archives: AVR ATmega
A DS18B20 1-wire digital thermometer AVR ATmega library
Davide Gironi writes: DS18B20 is a programmable resolution 1-wire digital thermometer. It has an operating temperature range of -55°C to +125°C and is accurate to ±0.5°C over the range of -10°C to +85°C. This library is an AVR implementation to retrive temperature from DS18B20. Built using the reference document: “Using DS18B20 digital temperature sensor on […]
CO2 meter using NDIR infrared MH-Z14 sensor library for AVR ATmega
Davide Gironi writes: MH-Z14 NDIR Infrared gas module is a common type, small size sensor, using non-dispersive infrared (NDIR) principle to detect the existence of CO2 in the air, with good selectivity, non-oxygen dependant and long life. MH-Z14 has a PWM output, with a sensitivity range of 0ppm to 2000ppm CO2, an accurancy of ±200ppm. […]
