brunnen iot presentation
DESCRIPTION
TRANSCRIPT
Prototyping a gadget to measure water level
about.me/perzi
torsdag 17 oktober 13
torsdag 17 oktober 13
torsdag 17 oktober 13
torsdag 17 oktober 13
torsdag 17 oktober 13
torsdag 17 oktober 13
IdeaMeasure water level with an ultra sonic sensor connected to an Arduino
torsdag 17 oktober 13
torsdag 17 oktober 13
torsdag 17 oktober 13
Prototype 1
• Will the idea work?
• Show the water level on LCD
• Document and blog about it
torsdag 17 oktober 13
torsdag 17 oktober 13
torsdag 17 oktober 13
torsdag 17 oktober 13
torsdag 17 oktober 13
torsdag 17 oktober 13
torsdag 17 oktober 13
torsdag 17 oktober 13
torsdag 17 oktober 13
torsdag 17 oktober 13
torsdag 17 oktober 13
torsdag 17 oktober 13
torsdag 17 oktober 13
torsdag 17 oktober 13
torsdag 17 oktober 13
torsdag 17 oktober 13
torsdag 17 oktober 13
torsdag 17 oktober 13
Lessons learned
• Have proper tools available
• Have backup components available
• Spent to much time making the box
• Use breadboard to connect components
• The lid of the well is really heavy
torsdag 17 oktober 13
Prototype 2
• Upgrade software to log values every 15 minutes
• Need to calculate timestamps for values
• Need to be able to set time on startup
torsdag 17 oktober 13
torsdag 17 oktober 13
torsdag 17 oktober 13
torsdag 17 oktober 13
First data for one day
torsdag 17 oktober 13
Lessons learned
• Connecting Arduino to USB resets it
• Data transfer by pen and paper
• Button bounce
• Usability for limited UI
• I have no clue how water depth varies in a well like ours
torsdag 17 oktober 13
Prototype 3 & 4
• Read values every second
• Log values every 5 minutes (min, max and avg)
• Store value in EEPROM (1kb available)
• Use serial monitor to transfer data to computer
torsdag 17 oktober 13
torsdag 17 oktober 13
Lessons learned
• Still no clue of what I need to log and how to analyze it
• I need more data per day to see more variations
• Connecting Arduino to same outlet as the pump cause loss of power and Arduino restart
torsdag 17 oktober 13
Prototype 5
• Real Time Clock module for correct timestamps
• SD card module for log a lot of data
• I2C for LCD, RTC and mem card
• Log every minute (1440 values per day)
torsdag 17 oktober 13
torsdag 17 oktober 13
torsdag 17 oktober 13
torsdag 17 oktober 13
torsdag 17 oktober 13
Let it run for 12 days
• 17125 values to analyze
• Imported into MySQL database
• First approach: calculate min and max per day show in a diagram
torsdag 17 oktober 13
torsdag 17 oktober 13
torsdag 17 oktober 13
Lessons learned
• Only need to log min and max per day
• Water level decreases constant, independent of how much we use
• Adafruit now sells a data logger shield (RTC + SD card + protoboard)
• Not all FAT32 libraries worked for me
• I talk the talk, but don’t blog the blog
torsdag 17 oktober 13
torsdag 17 oktober 13
Prototype 6
• Tried to add battery support, accidently burned PING))) sensor
torsdag 17 oktober 13
Lessons learned
• Don’t break your stuff
torsdag 17 oktober 13
Prototype Next
• RPI with WiFi or Arduino Yún to connect to wireless router in the house
• Use smaller ultra sonic sensor
• Make sensor case smaller so it can be installed through ventilation pipe
• Battery backup
torsdag 17 oktober 13