Recent Posts

Pages: [1] 2 3 ... 10
1
Is your Arduino a copy one and have you done a windows update as this could be your problem.

http://hackaday.com/2014/10/22/watch-that-windows-update-ftdi-drivers-are-killing-fake-chips/





2
I am facing that same problem, and have discovered that there are magic incantations which the IDE does or does not apply to files.  In an attempt to simplify the construction of tiny sketches by beginners, it does unknown transformations of you code under unknowable conditions, which can result in spurious errors in what appear to be valid programs.  I just split my large source into six files (it will probably be closer to 20 before I'm done) and it no longer compiles.  I have to do "black box" experiments to figure out how to either evade the damage caused by these transformations, or compensate for the unknown transformations which are not being done.

While I have no argument against making things easier for beginners, it is also essential to support people like me, who have had 50+ years experience as programmers (and in my case, 20+ years with C++).

The simple, obvious, and (for any other environment) correct mechanisms fail in the Arduino IDE.
      joe
3
General Electronics / Re: Why does ardunio and exter...
Last post by BennX - Today at 11:31 am
Yes.  It would.

These are electrical circuits - where a "circuit" means a closed path.  You must have a return path for the current in each of the interconnections.

Just very basic electrical theory.  If you connect a battery to a LED with only one wire, it will not light.

Thanks for the answer. I wasn't sure if i need to "return" the clocklines since i do have 2 GND dont i? One of the Arduino(USB) and one of the powersupply from the Breadboard. Good to know.

So i can connect the GND without haveing fears of distroying my arduino? In my case i do have a 5V circuit but what would happen if i had a higher power at my breadboard circuit?
I feel bad.. had electronics in class for 3 years but this is 5 years ago and i feel like i really know nothing.
4
I get the feeling that the memcpy function got more optimized, probably inlined w/o stack use.
Yeah, modern compilers will, GCC has builtin versions of many C standard functions like memset, memcpy, strcpy, strcmp,...

https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html
5
This demo illustrates communicating with an Arduino using Python

The data is prefixed by < and followed by > so that the Arduino and the PC can recognize the start and end of the data.

...R
6
hi
can some one helps me to measure AC current with ACS712 sensor
it just worked fine with dc but with ac i cant find a solution
ty
7
Very Rough example
Code: [Select]

int dataLength=0; 
byte data[20];

void setup()
{
  int x,y,z;
  z=x=y;
}

void loop()
{
  int index;
  getInput();
  for(index=0;index<dataLength;index++)
  {
    byte special=data[index]/32;
    byte otherStuff=data[index]%32;
    switch(special)
    {
    case 0://three bits were 000
      doSomething0ish(otherStuff);
      break;
    case 1://three bits were 001
      doSomething1ish(otherStuff);
      break;
    case 2://three bits were 010
      doSomething2ish(otherStuff);
      break;
    case 3://three bits were 011
      doSomething3ish(otherStuff);
      break;
    case 4://three bits were 100
      doSomething4ish(otherStuff);
      break;
    case 5://three bits were 101
      doSomething5ish(otherStuff);
      break;
    case 6://three bits were 110
      doSomething6ish(otherStuff);
      break;
    case 7://three bits were 111
      doSomething7ish(otherStuff);
      break;     
    }
  }
}



void getInput()
{
  dataLength=0;
  while(Serial.available())
  {
    data[dataLength++]=Serial.read();
  }
}

void doSomething0ish(byte last5bits)
{
}

void doSomething1ish(byte last5bits)
{
}
void doSomething2ish(byte last5bits)
{
}
void doSomething3ish(byte last5bits)
{
}
void doSomething4ish(byte last5bits)
{
}
void doSomething5ish(byte last5bits)
{
}
void doSomething6ish(byte last5bits)
{
}
void doSomething7ish(byte last5bits)
{
}


8
Software / Re: errore mancanza libreria w...
Last post by nid69ita - Today at 11:27 am
@MarioNardo,
ti invitiamo a presentarti (dicci quali conoscenze hai di elettronica e di programmazione) qui: Presentazioni
e a leggere il regolamento: Regolamento
- qui una serie di schede by xxxPighi per i collegamenti elettronici vari: ABC - Arduino Basic Connections
- qui le pinout delle varie schede by xxxPighi: Pinout
- qui una serie di link generali utili: Link Utili
9
Seems fixed now, thanks!
Now please allow entering links  as easily as before ;)

2nd try
10
Hardware / Re: Sensore Rotellina del mous...
Last post by Lucailvec - Today at 11:22 am
se è un ps2 il mouse prova a collegarlo ad arduino e fagli delle interrogazioni , in questo modo vedi se originariamente funzionava ;)
cerca su google qualche tutorial è facile 
Pages: [1] 2 3 ... 10