amc2020:group_n:sn74hc595n
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| amc2020:group_n:sn74hc595n [2020/07/18 19:35] – jonas001 | amc2020:group_n:sn74hc595n [2023/01/05 14:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | < | ||
| + | < | ||
| + | <a href=" | ||
| + | <span style=" | ||
| + | ↩ Back to the main page | ||
| + | </ | ||
| + | </a> | ||
| + | </ | ||
| + | </ | ||
| + | |||
| ====== SN74HC595(N) Shift Register ====== | ====== SN74HC595(N) Shift Register ====== | ||
| Line 52: | Line 62: | ||
| | Operating Temperature | | Operating Temperature | ||
| | Power consumption | | Power consumption | ||
| + | |||
| + | Further information can be found in the {{https:// | ||
| ^ **//Table 2 //** SN74HC595(N) pin overview and description | ^ **//Table 2 //** SN74HC595(N) pin overview and description | ||
| Line 137: | Line 149: | ||
| ===== 4.3 Combining the Sketches ===== | ===== 4.3 Combining the Sketches ===== | ||
| - | This code can be combined with the code from the DHT-22 and the DS18B20s. This way the sensors are only powered when they are supposed to measure and are switched off again afterwards. | + | This code can be combined with the code from the DHT-22 and the DS18B20s |
| - | The sensors and the shift register need to be connected like explained in their pages, respectively. Additionally, | + | The sensors and the shift register need to be connected like explained in their pages, respectively. Additionally, |
| + | |||
| + | ^{{: | ||
| + | |**//Figure 3//** ESP32 connected with DHT-22, DS18B20 and SN74HC595.| | ||
| ==== 4.3.1 The Code combined ==== | ==== 4.3.1 The Code combined ==== | ||
| Line 146: | Line 161: | ||
| <file c++ ESP32_Sensors_Combined.ino> | <file c++ ESP32_Sensors_Combined.ino> | ||
| + | //ESP32 + DHT-22 + DS18B20 + 74HC595(n) Test | ||
| + | |||
| + | //The code in this sketch is explained in detail in the DHT-22, the DS18B20 and the SN74HC595N pages | ||
| + | //and just combines the different codes. | ||
| + | |||
| + | / | ||
| + | * DHT-22 | ||
| + | | ||
| + | */ | ||
| + | // | ||
| + | #define DHTTYPE DHT22 // | ||
| + | const int DHTPIN = 15; //define the Data Pin (GPIO 2) | ||
| + | |||
| + | //Libraries & Objects | ||
| + | #include < | ||
| + | |||
| DHT dht(DHTPIN, DHTTYPE); | DHT dht(DHTPIN, DHTTYPE); | ||
| Line 224: | Line 255: | ||
| Serial.println(" | Serial.println(" | ||
| Serial.println(" | Serial.println(" | ||
| + | Serial.println(delayTime); | ||
| } | } | ||
| Line 353: | Line 385: | ||
| During this test, all sensors were in equilibrium, | During this test, all sensors were in equilibrium, | ||
| + | |||
| + | < | ||
| + | < | ||
| + | < | ||
| + | <a href=" | ||
| + | <span style=" | ||
| + | Back to the top ⤴ | ||
| + | </ | ||
| + | </a> | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
amc2020/group_n/sn74hc595n.1595093715.txt.gz · Last modified: 2023/01/05 14:38 (external edit)