User Tools

Site Tools


No ACL setup yet! Denying access to everyone.
en:edu:zmitac:macro:embedeed:lab:esp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:edu:zmitac:macro:embedeed:lab:esp [2021/12/20 13:57] – pczekalskien:edu:zmitac:macro:embedeed:lab:esp [2021/12/21 14:33] (current) – [Connecting to the nodes] pczekalski
Line 14: Line 14:
 <note important>The 4x20 LCD display is connected via I2C bus to the ESP microcontroller and its address varies, depending on the node, see the documentation below.</note>  <note important>The 4x20 LCD display is connected via I2C bus to the ESP microcontroller and its address varies, depending on the node, see the documentation below.</note> 
  
-<note important>The DHT sensor is connected to the ESP microcontroller using a single GPIO and there are two types of them! Please see the documentation below.</note>+
  
 ==== Actuators ==== ==== Actuators ====
Line 29: Line 29:
 ==== Sensors ==== ==== Sensors ====
 In the following scenarios, you will use a DHT, integrated temperature-humidity sensor. \\ In the following scenarios, you will use a DHT, integrated temperature-humidity sensor. \\
-Sensor types vary between nodes (Figure {{ref>dhtsensors}}): 
-  * Nodes 1 through 4 all use DHT 22 (white sensor);  
-  * Nodes 8 through 11 all use DHT 11 (a blue one); 
  
 <figure dhtsensors> <figure dhtsensors>
Line 38: Line 35:
 </figure> </figure>
  
-All of our laboratory nodes use DHT11 sensors. \\ In general, DHT11 and DHT22 sensors differ with accuracy; thus for raw experimentation, it is meaningless.+All of our laboratory nodes use DHT11 sensors(blue one on the Figure {{ref>dhtsensors}}). \\ In general, DHT11 and DHT22 sensors differ with accuracy.
  
 Regarding DHTs, all nodes share the same configuration on the connection level: your DHT is always connected to the D4/GPIO2 pin of the ESP microcontroller. Regarding DHTs, all nodes share the same configuration on the connection level: your DHT is always connected to the D4/GPIO2 pin of the ESP microcontroller.
Line 49: Line 46:
 Please follow instructions and remember to fix your theme for Revolution! Your environment should look like in Figure {{ref>vrellab}}.\\ Please follow instructions and remember to fix your theme for Revolution! Your environment should look like in Figure {{ref>vrellab}}.\\
  
-__**Do not book a device for more than 30 minutes in a row (Figure {{ref>vrelbooking}}): respect other students!**__ You can continue working with devices out of regular working hours, see supervisor's guidance on lab availability.+__**Do not book a device for more than 30 minutes in a row (Figure {{ref>vrelbooking}}): respect other students!**__ \\ 
 +You can continue working with devices out of regular working hours, see the supervisor's guidance on lab availability.
  
 The URL for accessing the VREL lab is: [[http://distance.roboticlab.eu]]. The URL for accessing the VREL lab is: [[http://distance.roboticlab.eu]].
Line 303: Line 301:
 Observe temperature and humidity readings on the LCD. The temperature in our lab usually ranges between 20-30C (not, we observed over 30C during really hot summer!) while humidity is usually between 35-60%Rh. Observe temperature and humidity readings on the LCD. The temperature in our lab usually ranges between 20-30C (not, we observed over 30C during really hot summer!) while humidity is usually between 35-60%Rh.
  
 +===== FAQ =====
 +**Q: Help, my LCD seems to be frozen!**\\
  
 +A1: Check the I2C address is correct, regarding the laboratory node you're using. Consult details in the hardware section, as above.\\
  
 +A2: Still not working? And you're sure the I2C address is correct so ... It is rare, but may happen that the I2C bus becomes in an inconsistent state. In such case run the following program (in the separate source file, eventually merge with your code):
 +<code c>
 +#include <Arduino.h>
 +#include <LiquidCrystal_I2C.h>
  
 +LiquidCrystal_I2C lcd(0x3F,20,4); // set the LCD address to 0x27 for a 16 chars and 2 line display
 +
 +void setup()
 +{
 +  pinMode(4,OUTPUT);
 +  pinMode(5, OUTPUT);
 +  digitalWrite(4,LOW);
 +  digitalWrite(5,LOW);
 +  delay(2000);
 +  pinMode(5, INPUT); // reset pin
 +  pinMode(4, INPUT);
 +  delay(50);
 +  delay(2000);
 +  lcd.init(D2,D1);
 +  lcd.backlight();
 +  lcd.home();
 +  lcd.print("Hello world...");
 +}
 +
 +void loop()
 +{
 +
 +} 
 +</code>
  
en/edu/zmitac/macro/embedeed/lab/esp.1640005035.txt.gz · Last modified: by pczekalski