The disturbaphone is intended as an urban protest weapon. Open source, cheap to make and complemented by free downloadable playlists categorised by emotional responses.
The 7 segment led display consists of 7 leds that compose a digit and one for the decimal point. Check the type of display you have, some are common anodes and others common cathodes. This just determines wether you have to put them on HIGH or LOW to turn each led on or off. The goal was to be able to command from the serial monitor, the different digits showing up on the display. So first you define functions for each digit, turning on or off the right leds. Then using ifs in the loop and the ASCII table, you can link that to what we enter on the screen. https://www.youtube.com/watch?v=nZpYhfuZsOQ&feature=youtu.be CODE //Sketch for interface PC(serial monitor) to seven segment led display (1 digit) //see display chart for led placement, starts with A on the top center and ends with DP (decimal point) const char l_a = 2; //char is for small numbers, use "long" for others const char l_b = 3; const char l_c = 4; const char l_d = 5; const char l_e =...
Comments
Post a Comment