Wireless Egg Drop
The wireless egg drop kit allows you to view and record data from a wireless accelerometer. The data flows through the system along this path:
- accelerometer
- small microcontroller
- radio transmitter
- radio receiver
- Arduino microcontroller
- USB cable
- computer (web browser)
Materials
- laser-cut base plate for Arduino
- mounting screws and rubber feet for base plate
- radio receiver (315 MHz)
- egg drop unit:
- small microcontroller (digispark)
- 3-axis digital accelerometer
- small radio transmitter (315 MHz)
- 9 volt battery and battery holder
- power switch
- laser-cut plate
- padded plastic enclosure
Assembly
- Attach your Arduino and the radio receiver to the base plate.
- Place the rubber feet on the bottom of the base plate:
- Place the Grove shield onto the Arduino. Be careful with lining up the pins.
- Connect the receiver to pin D2 (digital pin 2) on you Arduino:
- Place the 9V battery in the egg drop batter holder.
Software Preparation
- Plug your Arduino into your computer with a USB cable.
- Send the Egg Drop Receiver sketch to your Arduino using the Arduino Programmer.
- Open the Egg Drop lesson
- Set the egg drop module on a flat surface.
- Turn on the wireless egg drop module. After about 5 seconds you should see an LED flash on the black circuit board. If the LED does not flash, your battery may be too low.
- The first 100 readings from the egg drop module are used to calibrate the
module. Any time you'd like to recalibrate the module, make sure the section in the
Egg Drop Lesson is running by clicking
Start
on the control block. Then, press theCalibrate
button (while the egg drop module is sitting still on a flat surface). - Move the egg drop module; you should see acceleration values in the data lab and in the individual blocks for each axis above the data lab.
Recording Data
By default, the egg drop lesson will continuously record and keep the last 30 seconds of
data in the data lab. To change this, click More Actions
and then Recording Options
.
The Recording Options dialog can configure the length of time to record, how many
samples per second to record, and whether to stop recording after the specified time or
record continuously. There are steps below for each method of recording.
Recording For a Specified Length of Time
- Click
More Actions
followed byRecording Options
. - Set
History Length
to the length of time you'd like to record for. - Set
Recording Mode
tostop after history length
. - Set
Sample Interval
to the sample interval you'd like. - Click
Ok
. The data lab will start recording automatically and stop after the history length that you specified. - Drop the module. All three axes will be recorded simultaneously.
- You can now explore the data that was recorded during the fall. Select different axes to view their plots.
If you'd like to start recording again without saving your data, click Start
or Reset
on the controls. The data lab will begin recording for the specified interval
again. To save your data and start a new run, follow the steps in "Saving Your Data"
below.
Recording Continuously
- Click
More Actions
followed byRecording Options
. - Set
History Length
to the length of time you'd like to record for. The data lab will keep historical data for this length of time. After this length of time the oldest data will be erased as new data is added. - Set
Recording Mode
tocontinuous
. - Set
Sample Interval
to the sample interval you'd like. - Click
Ok
. The data lab will start recording automatically. - Drop the module. All three axes will be recorded simultaneously.
- When the module has reached the ground, click
Stop
on the controls. You can now explore the data that was recorded during the fall. Select different axes to view their plots.
If you'd like to start recording again without saving your data, click Reset
on
the controls. To save your data and start a new run, follow the steps in "Saving Your
Data" below.
Saving Your Data
- If you'd like to keep the run of data you've collected, click the
Save/Share
option in theMore Actions
menu to save the data. Fill in a name and, optionally, a description for your data set. If you'd like others to be able to view your data, selectAdd Everyone
. - Click
Save
when you're done. Selecting theSave/Share
option subsequent times will append any new data to the saved data set. - Click the
New Data Set
option in theMore Actions
menu to create a new data set. This will preserve the settings you configured inRecording Options
, so you do not need to set them again if you'd like to keep the same settings. - Click
Start
to begin recording data for the next run.
Viewing Your Data
You data will be saved in the Data Hub. From here you can view your data, download a comma-separated version of it, edit it or delete it.
If you have any trouble, email support@manylabs.org.
Technical Details
If you're making your own board, connect the RF data line (yellow wire) to pin P5 on the digispark. Connect the accelerometer SCL (yellow wire) to pin P2 and SDA (white wire) to pin P0. Both the transmitter and accelerometer need to be connected to ground and 5V. Be sure to connect the battery to VIN, not 5V.
Using Two Arduinos
You can use two Arduinos instead of another small microcontroller. The receiving Arduino will be configured the same as above. The transmitting Arduino will need a power source and a different sketch.
Power
The transmitting Arduino will need to be battery powered. You can use a single 9 volt battery or several smaller cells. We don't recommend using Lithium Polymer batteries - these can be quite dangerous when damaged. Your battery holder will need a barrel connector for the Arduino. We sell a battery holder for 6 AA cells that will power the Arduino Uno here.
Sketch
Attach the transmitter to digital pin 5 on the transmitting Arduino. Then,
send the Egg Drop Transmitter sketch to your Arduino using the
Arduino Programmer. If you need to, you
can change the pin the transmitter is attached to in the Code
tab of the
Arduino Programmer.
Safe Packaging
While the Arduino can take quite a beating, you shouldn't drop it off a rooftop unprotected. We attached our components to a small laser-cut plate so they wouldn't bump into each other, and then wrapped the whole package in foam to absorb shock. Instead, you could use double-sided foam tape to attach the Arduino, batteries, and sensors to the inside of a small disposable plastic container, and wrap the outside with bubble wrap.