Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
![]() Slide 1: Setting up and IoT | ||||||||
Line: 178 to 178 | ||||||||
The CayenneMessage class | ||||||||
Added: | ||||||||
> > | ![]() Analogue to Digital ConversionOften real world signals are analogue in nature. Before treating them digitally we must convert them to digital valuesThis is done by an Analogue to Digital Converter The ESP8266 has a 10 bit ADC on chip, the ESP32 has 3 12 bit ADCs To demonstrate this we use a photo resistor reading the light intensity. Photo resistor and LEDThe photo resistor and the 1 kΩ resistor form a voltage dividerThe LED can be switched on by program and changes the light Intensity seen by the photo resistor
ADC readout
Prototype board on Cayenne![]() The prototype GUI![]() History of Intensity Measurements![]() A trigger in CayenneWe will observe the light intensity a and switch a light on, if it gets too dark![]() The trigger code![]() | |||||||
A Qt app and Cayenne MQTT | ||||||||
Line: 244 to 291 | ||||||||
| ||||||||
Added: | ||||||||
> > |
|