Difference: MinimalLectures (1 vs. 10)

Revision 102024-04-01 - UliRaich

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

Lecture notes

Summary:

Line: 35 to 35
 In the 2024 ASP edition, the IoT workshop has been extended to 2 1/2 days and we have a few new devices. First of all, we now have real sensors which measure air temperature, relative humidity and the barometric pressure. This will allow us to create a simplistic weather station.
sht30-1.png bmp180shield.png
SHT30 temperature and humidity sensor BMP180 barometric pressure sensor
Changed:
<
<
Often it is desirable to have a local display to show results without having to transfer data to a remote machine. A cheap monochrome OLED (Organic LED) display is available for the WeMos D1 mini bus but its resolution of 64x46 pixels is a bit too limited.
>
>
Often it is desirable to have a local display to show results without having to transfer data to a remote machine. A cheap monochrome OLED (Organic LED) display is available for the WeMos D1 mini bus but its resolution of 64x48 pixels is a bit too limited.
  oled_64x48.png

Revision 92024-03-28 - UliRaich

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

Lecture notes

Summary:

Line: 35 to 35
 In the 2024 ASP edition, the IoT workshop has been extended to 2 1/2 days and we have a few new devices. First of all, we now have real sensors which measure air temperature, relative humidity and the barometric pressure. This will allow us to create a simplistic weather station.
sht30-1.png bmp180shield.png
SHT30 temperature and humidity sensor BMP180 barometric pressure sensor
Added:
>
>
Often it is desirable to have a local display to show results without having to transfer data to a remote machine. A cheap monochrome OLED (Organic LED) display is available for the WeMos D1 mini bus but its resolution of 64x46 pixels is a bit too limited.

oled_64x48.png

It is however easily possible to put an OLED with 128x64 pixels onto a prototype board, which I did for this workshop.

oled_front.png oled_proto_front.png oled_proto_back.png
128x64 pixel monochrome OLED display display prototype board (front) display prototype board (back)
  Also the actuators have been extended with a small stepping motor and its driver board and there are exercises to make the motor move forward and backwards in different modes and speeds.
stepping.png
Line: 56 to 63
 
META FILEATTACHMENT attachment="bmp180shield.png" attr="" comment="" date="1711449824" name="bmp180shield.png" path="bmp180shield.png" size="76586" user="UliRaich" version="1"
META FILEATTACHMENT attachment="sht30-1.png" attr="" comment="" date="1711449826" name="sht30-1.png" path="sht30-1.png" size="172283" user="UliRaich" version="1"
META FILEATTACHMENT attachment="stepping.png" attr="" comment="" date="1711450031" name="stepping.png" path="stepping.png" size="156004" user="UliRaich" version="1"
Added:
>
>
META FILEATTACHMENT attachment="oled_front.png" attr="" comment="" date="1711618624" name="oled_front.png" path="oled_front.png" size="273668" user="UliRaich" version="2"
META FILEATTACHMENT attachment="oled_proto_back.png" attr="" comment="" date="1711618632" name="oled_proto_back.png" path="oled_proto_back.png" size="290725" user="UliRaich" version="2"
META FILEATTACHMENT attachment="oled_proto_front.png" attr="" comment="" date="1711618642" name="oled_proto_front.png" path="oled_proto_front.png" size="340915" user="UliRaich" version="2"
META FILEATTACHMENT attachment="oled_64x48.png" attr="" comment="" date="1711618522" name="oled_64x48.png" path="oled_64x48.png" size="76894" user="UliRaich" version="1"

Revision 82024-03-26 - UliRaich

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

Lecture notes

Summary:

Line: 32 to 32
 
led_ring_front_small.png led_ring_back_small.png
front view of LED ring back side of the prototype board
Changed:
<
<
In the 2024 ASP edition, the IoT workshop has been extended to 2 1/2 days and we have a few new devices. First of all we now have real sensors which measure air temperature and relaitive humidity and the barometric pressure. This will allow us to create a simplistic weather station.
>
>
In the 2024 ASP edition, the IoT workshop has been extended to 2 1/2 days and we have a few new devices. First of all, we now have real sensors which measure air temperature, relative humidity and the barometric pressure. This will allow us to create a simplistic weather station.
 
sht30-1.png bmp180shield.png
SHT30 temperature and humidity sensor BMP180 barometric pressure sensor

Revision 72024-03-26 - UliRaich

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

Lecture notes

Summary:

Line: 10 to 10
 
Added:
>
>
 

Introduction

During the exercise sessions, we will first develop a program that lights the user programmable LED on the CPU card. This displays a binary signal, which can only be high or low. The exercise therefore demonstrates how to output a signal and how to control a single digital signal line.

Line: 25 to 27
 A slightly more complex program will allow us to read the signal level generated by an analogue sensor (our potentiometer) and display the signal level on the 7 LED rgb (red, green, blue) display. For this to work, we must first understand how to connect and read the analogue signal using the Analogue to Digital Converter (ADC). Then we must find out how an LED on the LED ring can be lit and how to select its color. Finally, we can again combine the two functions into a single program. This will read the signal level from the potentiometer and light one of the LEDs on the LED ring. For lowest signal levels, the top LED is lit in blue (which often represents a cold or low value). If the value is a bit higher, then the second LED is activated in cyan, After that we go clockwise using the colors (blue, cyan, green, yellow, magenta, red, white) where white will be displayed for the highest signal level on the center LED.

slider.png leds.png
Added:
>
>
Unfortunately the LoLin RGB LED shield is not available any longer and our kits cannot be stocked up with this module. It is however possible to create a similar module using an LED ring together with a WeMos D1 mini prototype board. This is quite a bit of work and the LED addressing is different. The LoLin board addresses its LEDs in a clock-wise manner while the LED ring does this counter-clock-wise. With a mapping table, this problem can easily be resolved and the two versions will react the same way.
led_ring_front_small.png led_ring_back_small.png
front view of LED ring back side of the prototype board

In the 2024 ASP edition, the IoT workshop has been extended to 2 1/2 days and we have a few new devices. First of all we now have real sensors which measure air temperature and relaitive humidity and the barometric pressure. This will allow us to create a simplistic weather station.

sht30-1.png bmp180shield.png
SHT30 temperature and humidity sensor BMP180 barometric pressure sensor

Also the actuators have been extended with a small stepping motor and its driver board and there are exercises to make the motor move forward and backwards in different modes and speeds.

stepping.png
Stepping motor and driver board
 Now that we know what we have to do, let's go for it! Communicating with the ESP32

- - Uli Raich - 2022-10-14

Line: 37 to 51
 
META FILEATTACHMENT attachment="pushbutton.png" attr="" comment="" date="1665760352" name="pushbutton.png" path="pushbutton.png" size="158169" user="UliRaich" version="1"
META FILEATTACHMENT attachment="esp32V1.png" attr="" comment="" date="1665760355" name="esp32V1.png" path="esp32V1.png" size="246295" user="UliRaich" version="1"
META FILEATTACHMENT attachment="slider.png" attr="" comment="" date="1665761954" name="slider.png" path="slider.png" size="156597" user="UliRaich" version="1"
Added:
>
>
META FILEATTACHMENT attachment="led_ring_front_small.png" attr="" comment="" date="1711449380" name="led_ring_front_small.png" path="led_ring_front_small.png" size="159442" user="UliRaich" version="1"
META FILEATTACHMENT attachment="led_ring_back_small.png" attr="" comment="" date="1711449387" name="led_ring_back_small.png" path="led_ring_back_small.png" size="182911" user="UliRaich" version="1"
META FILEATTACHMENT attachment="bmp180shield.png" attr="" comment="" date="1711449824" name="bmp180shield.png" path="bmp180shield.png" size="76586" user="UliRaich" version="1"
META FILEATTACHMENT attachment="sht30-1.png" attr="" comment="" date="1711449826" name="sht30-1.png" path="sht30-1.png" size="172283" user="UliRaich" version="1"
META FILEATTACHMENT attachment="stepping.png" attr="" comment="" date="1711450031" name="stepping.png" path="stepping.png" size="156004" user="UliRaich" version="1"

Revision 62022-10-17 - UliRaich

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

Lecture notes

Summary:

Line: 9 to 9
 
Added:
>
>
 

Introduction

During the exercise sessions, we will first develop a program that lights the user programmable LED on the CPU card. This displays a binary signal, which can only be high or low. The exercise therefore demonstrates how to output a signal and how to control a single digital signal line.

Revision 52022-10-16 - UliRaich

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

Lecture notes

Summary:

Line: 7 to 7
 
Added:
>
>
 

Introduction

During the exercise sessions, we will first develop a program that lights the user programmable LED on the CPU card. This displays a binary signal, which can only be high or low. The exercise therefore demonstrates how to output a signal and how to control a single digital signal line.

Revision 42022-10-15 - UliRaich

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

Lecture notes

Summary:

Line: 6 to 6
 
Added:
>
>
 

Introduction

During the exercise sessions, we will first develop a program that lights the user programmable LED on the CPU card. This displays a binary signal, which can only be high or low. The exercise therefore demonstrates how to output a signal and how to control a single digital signal line.

Revision 32022-10-15 - UliRaich

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

Lecture notes

Added:
>
>

Summary:

 

Introduction

During the exercise sessions, we will first develop a program that lights the user programmable LED on the CPU card. This displays a binary signal, which can only be high or low. The exercise therefore demonstrates how to output a signal and how to control a single digital signal line.

Line: 16 to 21
 A slightly more complex program will allow us to read the signal level generated by an analogue sensor (our potentiometer) and display the signal level on the 7 LED rgb (red, green, blue) display. For this to work, we must first understand how to connect and read the analogue signal using the Analogue to Digital Converter (ADC). Then we must find out how an LED on the LED ring can be lit and how to select its color. Finally, we can again combine the two functions into a single program. This will read the signal level from the potentiometer and light one of the LEDs on the LED ring. For lowest signal levels, the top LED is lit in blue (which often represents a cold or low value). If the value is a bit higher, then the second LED is activated in cyan, After that we go clockwise using the colors (blue, cyan, green, yellow, magenta, red, white) where white will be displayed for the highest signal level on the center LED.

slider.png leds.png
Changed:
<
<
Now that we know what we have to do, let's go for it! Programming Python
>
>
Now that we know what we have to do, let's go for it! Communicating with the ESP32
  - - Uli Raich - 2022-10-14

Revision 22022-10-15 - UliRaich

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

Lecture notes

Introduction

Changed:
<
<
During the exercise sessions, we will first develop a program that lights the user programmable LED on the CPU card. This displays a binary signal, which can only be high or low.
>
>
During the exercise sessions, we will first develop a program that lights the user programmable LED on the CPU card. This displays a binary signal, which can only be high or low. The exercise therefore demonstrates how to output a signal and how to control a single digital signal line.
  esp32V1.png

On the bottom right of the photo, you see 2 LEDs. The lower one marked ON (upside down) shows if power is supplied to the board, the upper one is user programmable.

Changed:
<
<
Then we will read a digital actuator, namely a simple push button switch, and we will display its current value (pushed or released) on the PC screen. After that, we may switch the LED on when the button is pressed and switch it off, when the button is released, thus combining the acquisition of a digital sensor with the display of its state.
>
>
As a second exercise we will read a digital actuator, namely a simple push button switch, and we will display its current value (pushed or released) on the PC screen. This exercise therefore demonstrates how to acquire the state of a digital signal. After that, we may switch the LED on, when the button is pressed, and switch it off, when the button is released, thus combining the acquisition of a digital sensor with the display of its state.
  pushbutton.png

A slightly more complex program will allow us to read the signal level generated by an analogue sensor (our potentiometer) and display the signal level on the 7 LED rgb (red, green, blue) display. For this to work, we must first understand how to connect and read the analogue signal using the Analogue to Digital Converter (ADC). Then we must find out how an LED on the LED ring can be lit and how to select its color. Finally, we can again combine the two functions into a single program. This will read the signal level from the potentiometer and light one of the LEDs on the LED ring. For lowest signal levels, the top LED is lit in blue (which often represents a cold or low value). If the value is a bit higher, then the second LED is activated in cyan, After that we go clockwise using the colors (blue, cyan, green, yellow, magenta, red, white) where white will be displayed for the highest signal level on the center LED.

slider.png leds.png
Changed:
<
<
Now the we know what we have to do, let's go! Programming Python
>
>
Now that we know what we have to do, let's go for it! Programming Python
  - - Uli Raich - 2022-10-14

Revision 12022-10-14 - UliRaich

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="ASP2022"

Lecture notes

Introduction

During the exercise sessions, we will first develop a program that lights the user programmable LED on the CPU card. This displays a binary signal, which can only be high or low.

esp32V1.png

On the bottom right of the photo, you see 2 LEDs. The lower one marked ON (upside down) shows if power is supplied to the board, the upper one is user programmable.

Then we will read a digital actuator, namely a simple push button switch, and we will display its current value (pushed or released) on the PC screen. After that, we may switch the LED on when the button is pressed and switch it off, when the button is released, thus combining the acquisition of a digital sensor with the display of its state.

pushbutton.png

A slightly more complex program will allow us to read the signal level generated by an analogue sensor (our potentiometer) and display the signal level on the 7 LED rgb (red, green, blue) display. For this to work, we must first understand how to connect and read the analogue signal using the Analogue to Digital Converter (ADC). Then we must find out how an LED on the LED ring can be lit and how to select its color. Finally, we can again combine the two functions into a single program. This will read the signal level from the potentiometer and light one of the LEDs on the LED ring. For lowest signal levels, the top LED is lit in blue (which often represents a cold or low value). If the value is a bit higher, then the second LED is activated in cyan, After that we go clockwise using the colors (blue, cyan, green, yellow, magenta, red, white) where white will be displayed for the highest signal level on the center LED.

slider.png leds.png

Now the we know what we have to do, let's go! Programming Python

- - Uli Raich - 2022-10-14

Comments

<--/commentPlugin-->

META FILEATTACHMENT attachment="leds.png" attr="" comment="" date="1665761954" name="leds.png" path="leds.png" size="299673" user="UliRaich" version="1"
META FILEATTACHMENT attachment="pushbutton.png" attr="" comment="" date="1665760352" name="pushbutton.png" path="pushbutton.png" size="158169" user="UliRaich" version="1"
META FILEATTACHMENT attachment="esp32V1.png" attr="" comment="" date="1665760355" name="esp32V1.png" path="esp32V1.png" size="246295" user="UliRaich" version="1"
META FILEATTACHMENT attachment="slider.png" attr="" comment="" date="1665761954" name="slider.png" path="slider.png" size="156597" 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