Difference between revisions of "Electrical Control Unit"

From Woodland Harvest Wiki
Jump to navigation Jump to search
Line 12: Line 12:
 
We are using a Vortex wind sensor. One revolution per second equals 2.5 mph. Since our anemometer has a relay (a mechanical switch), it creates a _switch bounce_. Therefore, we need a debounce circuit.
 
We are using a Vortex wind sensor. One revolution per second equals 2.5 mph. Since our anemometer has a relay (a mechanical switch), it creates a _switch bounce_. Therefore, we need a debounce circuit.
 
[[File:WindSpeed Porch Oct14.jpg|border|thumb]]
 
[[File:WindSpeed Porch Oct14.jpg|border|thumb]]
 +
 +
_A bug with the current code seems to be related to saving the dateTime string. The dateTime string is saved incorrectly when there should be a trailing 0 in front of the minute reading. I believe that the current code does not include an additional 0 to save minute readings below 10.
  
 
# Wireless communication codes
 
# Wireless communication codes

Revision as of 19:51, 27 December 2020

Please refer to this GitHub Repository for the code for all Arduinos.

Repository Sections

master-arduino

backporch-arduino

anemometer

Anemometer data logger prototype on porch

We are using a Vortex wind sensor. One revolution per second equals 2.5 mph. Since our anemometer has a relay (a mechanical switch), it creates a switch bounce. Therefore, we need a debounce circuit.

WindSpeed Porch Oct14.jpg

_A bug with the current code seems to be related to saving the dateTime string. The dateTime string is saved incorrectly when there should be a trailing 0 in front of the minute reading. I believe that the current code does not include an additional 0 to save minute readings below 10.

Wireless communication codes

Opportunities to improve the system

  • We are currently supplying power to the Arduinos via USB. If we used DC converters from the batteries to the Arduinos, we might save some electricity.

Useful Guides

Real Time Clock Setup for SD3231

Tutorial on arduino.com

Download DS3231 library on GitHub

Data logging on SD-card

this randomnerdtutorial.com leads you through SD-card usage with an arduino.

Wireless communication with NRF24L01

We have long-run antennas for wireless communication (NRF24L01 Tutorial).
You should solder a 10uf electrolytic capacitor between the power leads.

How to connect several SPI devices to Arduino.

Non-invasive AC Current Sensor ANSANE SCT-013-030

Outputs approximately 1 V for every 30 A.