0 Members and 1 Guest are viewing this topic.
Quote from: Nick on February 01, 2012, 11:58:10 amyay, i got my breadboard, some leds, condensators, resistor and diodes, they didn't have any transistors Ö so now i con't yet make something useful, just some leds in parallel and serie lolYou can make passive filters with those. Google RC low-pass filter and RC hi-pass filter. Those filters modify audio signals for example.
yay, i got my breadboard, some leds, condensators, resistor and diodes, they didn't have any transistors Ö so now i con't yet make something useful, just some leds in parallel and serie lol
Sounds like fun! How was getting your feet wet?
so i don't have to worry about them? ok then thanks..oh, and it also makes it possible to switch a led on and off with 2 buttons in the VB program
int recVal;int pwmVal;int ledPin = 10;boolean dataReceived = false;int dataTimer = 0;void setup() { Serial.begin(19200); pinMode(ledPin, OUTPUT);}void loop() { if (Serial.available() > 0) { recVal = Serial.read(); if (recVal == 'S') { dataTimer = 0; while (dataReceived == false && dataTimer < 100) { pwmVal = Serial.read(); dataTimer++; if (pwmVal != -1) { Serial.println(pwmVal); } } if (dataTimer >= 100) { Serial.println("Nothing received"); } } }}
Arduino.Write("S")Arduino.Write("a")