Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.
/ epics-dendrometer Public archive

Arduino sketch for tree measuring prototypes

Notifications You must be signed in to change notification settings

jmanuel1/epics-dendrometer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tree Carbon Capture Dendrometer

This is the beginnings of an Arduino sketch for prototypes of a device that measures the diameter of a tree. It is written to be able to support multiple sensors and transmitting devices via compile-time configuration in src/dendrometer/config.h.

Test sketches

receiver_test and transmitter_test (in the src/ folder) are Arduino sketches to test the functionality of the VirtualWire library. These sketches are confirmed to work when pin 12 of one Arduino transmitting data is directly connected to pin 11 of an Arduino receiving data, set up like in the following schematic.

Two separate Arduinos. The ground pin of one Arduino is connected to the ground pin of the other. Pin 12 of the transmitting Arduino is connected, though a wire, to pin 11 of the receiving Arduino.

The test Arduino sketches also work with real RF (radio) modules. In particular, the sketches were tested with HiLetgo 315Mhz RF transmitter and receiver modules. The following schematic shows how a circuit using these modules and the test sketches could be set up.

Two separate Arduinos not sharing a ground. The transmitter module is connected to pin 12 of the transmitting Arduino. The receiver module is connected to pin 11 of the receiving Arduino.

Loading the sketches onto Arduinos

Upload the receiver_test sketch to the Arduino that will receive data from the other Arduino. Upload the transmitter_test sketch to the other Arduino.

Running

When both Arduinos have power, the receiving Arduino should repeatedly output the following through the serial port (i.e. USB if connected to a computer).

Received: hello there!

Why are we using a superceded library?

It seems that there are many more easily found internet resources on VirtualWire than there are on its replacement, RadioHead. Based on RadioHead's list of supported chips, it's unclear whether it even supports the hardware we're using!

Releases

No releases published

Packages

No packages published