Daytripper Advanced Usage Guide
If you're not familiar with Daytripper yet, please see the Quick Start Guide first.
Instead of hiding windows, you can perform custom actions when TX is triggered.
Mode Select Switch on RX to
CUSTOM, middle position. Now
ALT + PAUSE will be pressed when TX is triggered.
This key combo normally doesn't do anything, but you can capture it with a software and then perform your own actions.
System Preferences ->
Click the box to the right of
Keyboard Shortcut, trigger the TX, and it will fill in the box for you.
You can then add a shortcut to launch an application, or execute an applescript.
For more advanced scripting needs, you can try bettertouchtool as well.
Believe it or not Daytripper also works on Android!
Oh I'm sure you'll figure it out
On-air Packet Format
Daytripper uses a nRF24L01-compatible chip called Si24R1. It is much cheaper, and actually has a higher TX power output, resulting in longer communication range.
Daytripper operates at
address 0xDA 0xBB 0xED 0xC0 0x0C.
Data rate is
250kbps, TX power is
Auto Acknowledgment is used.
Daytripper TX sends 6-byte packets, details below:
The first byte (byte 0) is a unique identifier calculated from the microcontroller serial number.
Second byte (byte 1) denotes what this packet is about. It can be either a test packet, trigger packet, or status update packet.
The rest 4 bytes are payloads, the meaning depending on the command type.
Testpacket, the 4 bytes are the same incrementing sequence number repeated 4 times.
Triggerpacket, the first two bytes are the baseline reading of the power-up calibration. And the last two bytes are the actual distance reading. Unit in mm.
statuspacket, the first two bytes are the latest battery voltage reading in mV. The last two bytes are the time-since-power-on count, multiply it by 5 to get the number of seconds elapsed since TX power-on.
vbat_mVis about 300mV lower than the actual battery voltage, due to the diode drop.
There is a user button on both TX and RX board. Usually they are unused:
For TX, a short press (less than 2 seconds) recalibrates the baseline. A long press (more than 2 seconds) enters Test Mode, where it sends test packets with incrementing sequence number as payload every second. It can be used to test communication range. Turn it off then on again to exit Test Mode.
For RX, a press on the button types out some debug messages. Make sure you open a text editor first.
USB Firmware Updates
You can update Daytripper's firmware via USB, for bug fixes and and/or new features.
First, locate the user button on the board:
To update firmware:
Make sure the board is OFF and unplugged.
Press and hold down the user button while plugging it into a computer.
Once it is plugged in, you can release the button.
If it all goes well, the blue LED should stay off.
Now launch the
Available DUF Devices section at top left corner, you should see a
STM Device in DFU Mode.
Choose... button and select a firmware file in
.dfu format. Make sure it's the correct file!
Upgrade button to start uploading the new firmware into the microcontroller.
And now the firmware is being updated!
It could take anywhere between a few seconds to a few minutes. Try using different USB ports if it is particularly slow.
After uploading is complete, unplug and turn it back on to start using the new firmware.
If you generated a
.hex file yourself, you can convert it to a
.dfu file with the
Dfu file manager and then upload this way.
This method is nice for occasional firmware updates, but quite cumbersome if you want to do extensive reprogramming. It's faster to get a ST-Link programmer and use the Keil uVision IDE. See this guide for more information on STM32 developments.
Using Multiple Modules
Daytripper wasn't designed with multiple TX/RX boards in mind. And I haven't done any extensive testings on this subject.
Single RX Multiple TX
In this scenario RX will react when ANY of the multiple TX fires.
Single TX Multiple RX
Here ALL of RX will react when TX fires.
Multiple TX Multiple RX
Untested, probably a mess.
Questions or Comments?
Please feel free to open an issue. This is the preferred way since it helps other people too.
You can also email me at
dekunukem gmail com for inquires.