Difference: PublishAndSubscribe (4 vs. 5)

Revision 52019-06-09 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="WorkshopSlides"

Start Presentation

Slide 1: Setting up and IoT

Line: 178 to 178
 

The CayenneMessage class

Added:
>
>
cayenneMsgClass.png

cayenneMsg.png

Analogue to Digital Conversion

Often real world signals are analogue in nature.

Before treating them digitally we must convert them to digital values

This 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 LED

The photo resistor and the 1 kΩ resistor form a voltage divider

The LED can be switched on by program and changes the light

Intensity seen by the photo resistor

photoresistorSchema.png proto.png

ADC readout

The ADC and GPIO driver classes

are already available in MicroPython.

This makes readout a child’s game.

protoDriver.png

Prototype board on Cayenne

cayenneProtoCode.png

The prototype GUI

cayenneProtoResult.png

History of Intensity Measurements

cayenneProtoHistory.png

A trigger in Cayenne

We will observe the light intensity a and switch a light on, if it gets too dark

cayenneTrigger.png

The trigger code

triggerCode.png

 

A Qt app and Cayenne MQTT

Line: 244 to 291
 
META FILEATTACHMENT attachment="cayenneProtoResult.png" attr="" comment="" date="1560083305" name="cayenneProtoResult.png" path="cayenneProtoResult.png" size="118585" user="UliRaich" version="1"
META FILEATTACHMENT attachment="cayenneProtoHistory.png" attr="" comment="" date="1560083306" name="cayenneProtoHistory.png" path="cayenneProtoHistory.png" size="117259" user="UliRaich" version="1"
META FILEATTACHMENT attachment="cayenneTrigger.png" attr="" comment="" date="1560083413" name="cayenneTrigger.png" path="cayenneTrigger.png" size="129070" user="UliRaich" version="1"
Added:
>
>
META FILEATTACHMENT attachment="cayenneMsg.png" attr="" comment="" date="1560088675" name="cayenneMsg.png" path="cayenneMsg.png" size="9855" user="UliRaich" version="1"
META FILEATTACHMENT attachment="cayenneProtoCode.png" attr="" comment="" date="1560089241" name="cayenneProtoCode.png" path="cayenneProtoCode.png" size="69615" user="UliRaich" version="1"
META FILEATTACHMENT attachment="triggerCode.png" attr="" comment="" date="1560089744" name="triggerCode.png" path="triggerCode.png" size="107323" user="UliRaich" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback