User Tools

Site Tools


digispark:tutorials:temp

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
digispark:tutorials:temp [2016/03/22 22:04]
exeng [Sleep Mode configuration:]
digispark:tutorials:temp [2016/06/09 12:03] (current)
Line 228: Line 228:
   - Yellow wire - pin 10 (WAKE) to RESET (RST)   - Yellow wire - pin 10 (WAKE) to RESET (RST)
   - White wire – pin 2 to DS18B20 DQ (note: 4.7K pull-up resister)   - White wire – pin 2 to DS18B20 DQ (note: 4.7K pull-up resister)
 +  - DS18B20 leads from left to right: (1) GND, (2) DQ, (3) Vdd
  
 {{:​digispark:​tutorials:​oak-temp-sensing-1-wire-bus-2.jpg?​direct&​200|}} {{:​digispark:​tutorials:​oak-temp-sensing-1-wire-bus-2.jpg?​direct&​200|}}
Line 270: Line 271:
   - White wire – pin 2 to DS18B20 DQ (note: 4.7K pull-up resister)   - White wire – pin 2 to DS18B20 DQ (note: 4.7K pull-up resister)
   - Blue wire – pin 5 to GND (ground)   - Blue wire – pin 5 to GND (ground)
 +  - DS18B20 leads from left to right: (1) GND, (2) DQ, (3) Vdd
 +
 +{{:​digispark:​tutorials:​oak-tem-sensing-1-wire-bus-3.jpg?​direct&​200|}}
  
-[[oak-temp-sensing-1-wire-bus-3.jpg|{{oak-temp-sensing-1-wire-bus-3.jpg}}]] 
  
 Note the addition of the Blue wire connecting pin 5 to ground. In non-sleep mode the Oak enters setup() and reads pin 5 to determine the desired mode. Since pin 5 is pulled to ground (LOW) the sketch will enter loop() where it continually requests temperature data from the DS18B20 and publishes that date to the particle.io Dashboard log. Data is requested at intervals set by “sleepTimeS” which specifies the number of seconds to delay between readings. ​ Note the addition of the Blue wire connecting pin 5 to ground. In non-sleep mode the Oak enters setup() and reads pin 5 to determine the desired mode. Since pin 5 is pulled to ground (LOW) the sketch will enter loop() where it continually requests temperature data from the DS18B20 and publishes that date to the particle.io Dashboard log. Data is requested at intervals set by “sleepTimeS” which specifies the number of seconds to delay between readings. ​
digispark/tutorials/temp.1458709482.txt.gz · Last modified: 2016/03/22 22:04 by exeng