![]() For an // Arduino Due that runs at 84mhz a value of 30 works. Includes HDMI 4K Ultra HD and 3D pass-through technologies for compatibility with 3D TVs, Blu-ray players and gaming consoles and 4K Ultra HD TVs. The default for a 16mhz AVR is a value of 6. This Sony home theater AV receiver works with a wide variety of audio formats, such as Google Home, Chromecast and Spotify. It's a bit // of fiddling to find the right value, but in general the faster the CPU the // higher the value. You can do this by passing a 3rd parameter for this threshold. ![]() Temperature controller for A/V Cabinet // Fan is controlled by 10A relay connected to a 12v (computer) or 5v (USB) Fan // Piezo alarm for alternate overheating alert int FANTEMP = 95 // High temp at which the fan turns on (90*F) int ALARMTEMP = 120 // Overheating temp (120*F) int FANLED = 2 // Pin for fan "on" LED int TEMPOK = 3 // LED for when temp is under FANTEMP int ALARMLED = 4 // Alarm LED int ALARMPIN = 7 // Audible alarm for overheating // DHTPIN = 8 (defined below) int FANPIN = 9 // Relay for fan switch #include "DHT.h" // Written by ladyada, public domain #define DHTPIN 8 // DHT Sensor // Uncomment whatever type you're using! #define DHTTYPE DHT11 // DHT 11 //#define DHTTYPE DHT22 // DHT 22 (AM2302) //#define DHTTYPE DHT21 // DHT 21 (AM2301) // Initialize DHT sensor for normal 16mhz Arduino DHT dht ( DHTPIN, DHTTYPE ) // NOTE: For working with a faster chip, like an Arduino Due or Teensy, you // might need to increase the threshold for cycle counts considered a 1 or 0. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |