andydoro / ima767_medp349_spring2019 Goto Github PK
View Code? Open in Web Editor NEWIntroduction to Physical Computing, Hunter College, Spring 2019
Introduction to Physical Computing, Hunter College, Spring 2019
I'm attempting to use capacitive touch to activate tones on the Circut Python Express. I've had success with using two different codes (Make Code .uf2 file and CircutPython .py file, both based on what they're linked to) and when the pin on the board is touched, I get sound.
However, whenever I attach an alligator clip, there's continual contact that keeps triggering the sound. I've experimented with code that should have solved this problem and I know there's the mute switch, but nothing is working.
I'm assuming something I'm doing/overlooking is the variable, but I haven't figured it out yet.
Hey all! I got the Elegoo UNO R3 Super Starter Kit and the resistors come attached to two really flimsy pieces of paper. It's a pain in the butt putting the resistors back into those pieces, especially after they get real bent up from use.
I'm wondering: what are some more practical ways to organize the resistors, while also saving space? The kit box isn't very big so I'm afraid that getting separate bags for all of them will take up too much space.
Hello. I am trying to figure out what the function would be for stopping the buzzer for a frequency over 330. There are some errors in my code; I need some help with my integers and the syntax for the argument. Also need clarification on the purpose of a function for tone frequency. Thanks!
int buzzer = 12;
int frequency = 330;
void setup() {
// put your setup code here, to run once:
pinMode(buzzer, OUTPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
if (buzzer > frequency){
analogWrite (buzzer, frequency);
delay (1000);
}
else { analogWrite (buzzer, LOW);
}
tone(buzzer,440); //A
delay(1000);
;
tone(buzzer,370); //F#
delay(1000);
tone(buzzer,330); //E
delay(500);
tone(buzzer,370); //F#
delay(200);
tone(buzzer,330); //E
delay(400);
tone(buzzer,294); //D
delay(500);
tone(buzzer,330); //E
delay(500);
}
Hi guys! I was wondering if anyone figured out how to make the LED lights brighter. I did some searching on the web but nothing they said worked. I have my lights setup where they delay and look like Knightrider but I can't figure out the brightness level. Any info would help! Thanks!
I'm trying to start work on CIRC04 for the homework on Tuesday, but from what I'm seeing, there's no 3-Pin Header to connect the servo motor to the breadboard. I'm curious as to whether anyone else encountered this/if I'm missing something/if there's a workaround? I'll keep digging, but right now I'm stumped after going through the kit.
I programmed a 4 digit 7 segment display. In my code, when doing the digitalWrite for the digits, LOW would turn that digit on. When doing the digitalWrite for the segments, HIGH would turn that segment on. Does this mean I am working with a common anode or cathode? #confused
Example:
digitalWrite(D1, LOW);
digitalWrite(D2, HIGH);
digitalWrite(D3, HIGH);
digitalWrite(D4, HIGH);
//my first digit will be 0, turning off G segment to make 0
//on LED display
digitalWrite(pinA, HIGH);
digitalWrite(pinB, HIGH);
digitalWrite(pinC, HIGH);
digitalWrite(pinD, HIGH);
digitalWrite(pinE, HIGH);
digitalWrite(pinF, HIGH);
digitalWrite(pinG, LOW);
delay(500);
When working on the Knight Rider assignment, I had a brief period where the first pin was significantly dimmer than all other pins. It isn't happening anymore, but I wasn't able to determine what caused it or what solved it. Did this happen to anyone else? Is it code related?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.