Show Posts
|
|
Pages: [1] 2 3
|
|
2
|
Using Arduino / Programming Questions / Problems with "Exit;"
|
on: September 28, 2012, 08:51:16 am
|
I tried to exit a loop with exit. Like this. if (vara>171) { Dacout0(vara); exit; } It did not work. Break works, so there is not a problem but I'm curious. I looked up the word Exit in C++ web references and it is there and there are no errors from compiler either.
|
|
|
|
|
9
|
Using Arduino / Sensors / Re: Potential (voltage) measurement
|
on: August 30, 2012, 02:27:48 am
|
|
I input voltages must within certain limits. Even if you measure their difference. And your Arduino and your voltages must have a common ground so that you can tell(measure) what the voltages are.
If those voltages are too much for Arduino you can use an instrumentation amplifier for that. It is a special chip to make voltage differences to start from ground. Like 11V and 12.23456V becomes 1.23456V. Leif
|
|
|
|
|
11
|
Using Arduino / Microcontrollers / Serial error from new Nega 2560
|
on: August 28, 2012, 07:58:17 am
|
|
I tried to send some keystrokes to a new Mega2560 clone. I got an IOexception from java.
java.io.IOException: Input/output error in writeArray at gnu.io.RXTXPort.writeArray(Native Method) at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1124)
Clip Clip
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
There is a problem in this board, but what and where. The mega16U2 seems to work, it looks like a serial port in Device manager. And the main Cpu is working also, I can program it with the Avrisp. Its serial output is working too.
I think the problem is in Mega16U2. But it has its firmware inplace. What else?
|
|
|
|
|
14
|
Using Arduino / Project Guidance / Re: What fuse settings for Mega16U2
|
on: August 27, 2012, 01:28:18 am
|
|
Good questions.
I know that there is somethingg working in the USB chip, because now there is a COM port in the PC. And the devicelist shows something like 2560.
When I wrote a short test program/sketch, all went fine until IDE started to download that into the Arduino board. That download would newer finish
|
|
|
|
|
15
|
Using Arduino / Project Guidance / Re: Power supply self control using transistor
|
on: August 24, 2012, 07:14:27 am
|
|
Almost
For instance you start you computer by setting S to active (that may be 0 or 5V depending your circuit) and your computer turn it off by setting R active. By the way, I said wrong it is better to use PNP transistor like BC558 or BC640 and so on. When you use PNP correctly, you connect /Q to base.
But I am not going to design this for you, see Google.
|
|
|
|
|