Pages: 1 2 [3] 4 5 ... 10
 on: Today at 10:13:34 am 
Started by bevangg - Last post by Frédéric_Plante
There is some thing I dont understand, your power supply was initially suficiant since you could configure the device. And you did try to send the +++ command. So what new did you do that you have not  done already?

 on: Today at 10:13:25 am 
Started by cjdelphi - Last post by tsunamy_boy
Well i bought an hair trimer (on a nom-Chinese store) with 2 lipo batteries inside and no charger controller.
And i had it hook up all night, lucky it didn't explode!

 on: Today at 10:11:32 am 
Started by tsunamy_boy - Last post by tsunamy_boy
Two things.
1) What is the "sound sensor"? Normally things called a sound sensor are just an envelope detector and you do not get any wave information from them so they can't be used to record a sound.

2) That second diagram is the way to go but do not put that capacitor to ground on the potential divider because that just shorts out your signal.
Sound sensor works as temporary, i can have an analog sound wave that works temporarily great.
Have you tested that source code that i have there (i got it from one of your posts here in the forum i believe), there's a lot of noising coming out of it (i tested that source out with an AMP and a microphone, also with an audio in)

 on: Today at 10:10:02 am 
Started by hmayda - Last post by icare
Rien d'anormal si tu ne fais rien il n'y a pas de raison pour cela clignote  smiley-mr-green
Explique un peu plus ton problème ?

 on: Today at 10:08:27 am 
Started by adelo14 - Last post by icare
Un peu de lecture.
Fait une recherche sur google avec : commande moteur triphasé arduino

 on: Today at 10:05:26 am 
Started by marslan2 - Last post by Gericom
How much EEPROM does a Due have?
The Arduino Due got no eeprom (at least not in the sam3x chip).

 on: Today at 10:05:25 am 
Started by vahe123s - Last post by vahe123s
hahaha I guess you answered my question

 on: Today at 10:05:01 am 
Started by thasatelliteguy - Last post by thasatelliteguy
I have a Mega2560 which when I first started playing around with Arduino, I started to flash with the wrong board selected. Not knowing what that would do, I saw that the IDE still said "compiling" and I jerked the USB.  It has never worked again.  I went and got an Uno and it worked for a little while and then started coming up with a sync error. I have since scrapped several micros and a couple chinese nanos, and got a USBASP. The micros program with the USBASP intermittently, as does the nano that I didn't physically damage. I have no idea why they are so flakey. (Other than being chinese knockoffs) The Uno and the mega I would like to get running again tho.

The uno makes the computer 'ding' when I plug it in. It comes up as uno com1 in device manager. But it will not program USB. I get a sync error every time. However, using the USBASP, either with avrdude, or the IDE programs it perfectly every single time. I have tried reflashing the 16u2 as well as the bootloader. (I even bought a 2nd 328) The flashes go thru successfully, but same thing... sync error. I have no clue why and wasn't doing anything nefarious to it when it quit.

The Mega does not make the computer ding and nothing shows in device manager.  I can sucessfully flash both chips, yet no ding and no changes in device manager. But the USB does power it up. The sketch runs once in a while but mostly I get a solid power and solid 13.

Any ideas??

 on: Today at 10:04:32 am 
Started by AppleAssassin - Last post by UKHeliBob
Do you mean slow it down or print less frequently ?
Either way, to avoid using delay() embrace the principle in the BlinkWithoutDelay example in the IDE.

Save a start time then check periodically whether the required time has elapsed.  If it has then act accordingly.  If not, go away and do something else such as reading sensors or input, then check the elapsed time again and so on.

Keith's method will work but the BWD method will give you precise control of the timing.

 on: Today at 10:03:28 am 
Started by Ben1999 - Last post by Ben1999
I am trying to show the change in temperature(degrees centigrade), with different colours with a RGB Led.  It worked with the first few colours, but started to mess up when I added more detailed colour instructions.  I am trying to figure out the bugs, but it would be great if I would get some help.  Thank you for the help.

int temperaturePin = 0;
 int LED[] = {9, 10, 11}; //sets the pins
                         //9 = RED, 10=GREEN, 11= BLUE
const boolean ON = LOW;  //defines ON as LOW
const boolean OFF = HIGH;  //defines OFF as HIGH

//Predefined Colors
const boolean RED[] = {ON, OFF, OFF};   
const boolean GREEN[] = {OFF, ON, OFF};
const boolean BLUE[] = {OFF, OFF, ON};
const boolean YELLOW[] = {ON, ON, OFF};
const boolean CYAN[] = {OFF, ON, ON};
const boolean MAGENTA[] = {ON, OFF, ON};
const boolean WHITE[] = {ON, ON, ON};
const boolean BLACK[] = {OFF, OFF, OFF};
void setup()
     for(int i = 0; i < 3; i++){
   pinMode(LED[i], OUTPUT);   //Set the three LED pins as outputs
  Serial.begin(115200);  //Start the serial connection with the copmuter
                       //to view the result open the serial monitor
                       //last button beneath the file bar (looks like a box with an antenae)
void loop()                     
 * getVoltage() - returns the voltage on the analog input defined by
 * pin
{float getVoltage(int pin);
 return (analogRead(pin) * .004882814); //converting from a 0 to 1023 digital range
                                        // to 0 to 5 volts (each 1 reading equals ~ 5 millivolts
} //converting from a 0 to 1023 digital range
                                        // to 0 to 5 volts (each 1 reading equals ~ 5 millivolts
 float temperature = getVoltage(temperaturePin);  //getting the voltage reading from the temperature sensor
 temperature = (temperature - .5) * 100;          //converting from 10 mv per degree wit 500 mV offset
Serial.print(temperature); Serial.println(" degrees centigrade");           
if(temperature < 430){
  setColor(LED, BLUE);
  if(temperature >430 && temperature <440){
    setColor(LED, GREEN);}
      else {
        if(temperature >440 && temperature <450){
    setColor(LED, GREEN);}
        setColor(LED, BLACK);



void setColor(int* led, boolean* color){
 for(int i = 0; i < 3; i++){
   digitalWrite(led[i], color[i]);

void setColor(int* led, const boolean* color){
  boolean tempColor[] = {color[0], color[1], color[2]};
  setColor(led, tempColor);

Pages: 1 2 [3] 4 5 ... 10