A series of arduino sketches along with some integrations and testing in ruby and arduino.
Simulate sensor input by using the Serial class. Push fake sensor data with a ruby script to the arduino sketch to test the business logic not just component integrity.
- sketch activity_validator.ino
- test activity_validator_test.rb
A simpler logger for the LM35 analog sensor that includes
- sketch temperature_logger_lm_35.ino
- a factory test sketch temperature_logger_lm_35_factory_test.ino
- a ruby script that compile uploads and runs the test suite temperature_logger_lm_35_factory_test.rb
- a ruby script that will connect and collect the temperature readings in a .csv file collect_data_lm_35.rb
- a ruby script that will summarize the findings analyze_data_lm_35.rb
- GitHub actions that will compile the specified sketches
Using 3 LEDs and a potentiometer to dim the lights on and off
- sketch dim_3_leds.ino
Read the button's state
- sketch button.ino
- sketch serial_chars.ino
- use
arduino-cli monitor -p /dev/ttyACM0 -c baudrate=9600 --rawto open the monitor and type any character - or
screen /dev/ttyACM0 9600
Loop digitalWrite with LOW and HIGH for one second
- sketch led_loop.ino
VID_20251203_172218641.3.mp4
Push the button and the light will go on
- sketch button_led.ino
Add a self-hosted runner to run the factory tests on GitHub source
Developed on Ubuntu 24.
You will need ruby installed matching the version in .ruby-version and arduino-cli
Then bundle install for the ruby dependencies.
Having arduino ide installed is helpful.