-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arduino Port #65
Merged
Arduino Port #65
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
No longer needed since the core ggwave lib now supports mono-tone protocols
uint8_t does not work so well for some reason. Probably we lose precission, although it's not obvious why
- faster FFT implementation - built-in Direct Sequence Spread option - remove <map> dependency from implementation - update arduino-rx example
However, the processing became ~4 times slower !?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ref #62
Porting
ggwave
for Arduino microcontrollersTODO:
ggwave-mod
std::vector
std::initializer_list
andArduinoSTL.h
dependencyF()
macro for constant strings (Arduino)malloc
instead ofnew
MT
andDT
protocols inarduino-rx
examplePROGMEM
(Arduino)Examples
All examples below can be compiled with Arduino IDE. You can use the
ggwave-cli
tool to communicate with the microcontroller from your PC. The microcontrollers use thefixed-length
setting ofggwave
(i.e. transmission without sound-markers where the payload length is known in advance) due to memory limitations, so make sure that yourpayloadLength
parameter is the same on both the sending and receiving sides. For example, usingpayloadLength = 16
and[MT] Fastest
protocol withDSS
:The new Mono-tone (MT) protocols are designed to work with microcontrollers, so make sure to use them. The other protocols might not work, depending on your hardware (chip + mic) parameters.
Arduino Tx demo
examples/arduino-tx
With this example, you can transmit data from the Arduino using a simple buzzer or speaker.
Supported microcontrollers
Arduino UNO
Arduino RP2040
Sample board
arduino-tx-3-github.mp4
Arduino Rx demo
examples/arduino-rx
Supported microcontrollers
Arduino RP2040
Arduino Nano 33 BLE Sense
(not tested yet)This example demonstrates how to receive data with an Arduino.
Sample board
The mic is built-in, so you don't need any other elements. Just upload the
arudino-rx
sketch to the microcontroller and observe the Serial output.ESP32 Rx demo
examples/esp32-rx
Supported microcontrollers
ESP32
This example demonstrates how to receive sound data with an ESP32 chip. The example uses the built-in ADC to sample data from analog microphone. The example was tested with a
MAX9814
microphone, but should work with other mics too. Upload theesp32-rx.ino
sketch via Arduino IDE and observe the Serial output.Sample board