Hi Guys,
Just came from home from Holiday. and someone was at the door already..... Yea the kits have arrived
The gaiety of seeing new hardware
Couldn't Resist myself so started to work on it
You can find the drivers and Yocto images over Intel webpage https://software.intel.com/en-us/iot/hardware/edison/downloads
and Grove Library from seeedstudio GitHub depository https://github.com/Seeed-Studio/Sketchbook_Starter_Kit_V2.0
Make sure the Slider is on the micro USB side
I used the Arduino IDE to run a small program that shows temperature on the 16x2 and changes back-light when temperature exceeds a threshold.
const int pinTemp = A0; const int B = 3975; #include <Wire.h> #include "rgb_lcd.h" byte cel[8] = { 0b11100, 0b10100, 0b11100, 0b00000, 0b00000, 0b00000, 0b00000, 0b00000}; rgb_lcd lcd; void setup() { Serial.begin(115200); lcd.begin(16,2); lcd.createChar(0,cel); } void loop() { int val = analogRead(pinTemp); // Determine the current resistance of the thermistor based on the sensor value. float resistance = (float)(1023-val)*10000/val; // Calculate the temperature based on the resistance value. float temperature = 1/(log(resistance/10000)/B+1/298.15)-273.15; // Print the temperature to the serial console. if(temperature>36) {lcd.setRGB(255, 20, 20); lcd.setCursor(4,0); lcd.print(temperature); lcd.write((unsigned char)0);lcd.print("C"); } else { lcd.setRGB(20, 20, 255); lcd.setCursor(4,0); lcd.print(temperature); lcd.write((unsigned char)0);lcd.print("C");} // Wait one second between measurements. delay(1000); }
Heated the thermistor using Hair dryer. Yep it works
Top Comments