Show Posts
Pages: [1] 2
1  Using Arduino / General Electronics / Replacing push button by light barrier, microphone, ... on: October 28, 2011, 11:20:10 pm
For a particular sketch I have a simple pushbutton which is connected via a push-up (pull-down?) resistor to an input. The connection is as follows: 5V - pushbutton - bifurcation to input - resistor - GND. By momentarily pushing the button I change the input from low to high and can react on this in the sketch. The other way round also works: If the push button is permanently pushed and then opened, my input changes from high to low and I can again react in the sketch. Basically, this is a simple external cable loop, which by opening or closing triggers an event in my sketch.

My question now ist, how can I just replace the pushbutton by any other device like a light barrier, a microphone, ... which would open or close the loop in just the same way. I think I will have to replace the button by a transistor which will be activated by the device and which will then open or close the loop. Only I do not know how to realize this exactly. If anybody could show or point me to an example circuit to realize this for a light barrier and a microphone (including required connections to power supply for the device), I would appreciate very much.

Thank you very much.
2  Using Arduino / Interfacing w/ Software on the Computer / Windows VB-Arduino Uno application: Will it run on MAC with a virtual windows PC on: October 21, 2011, 12:40:23 pm
Hi,

I have a completely working Windows Visual Basic application with GUI (written on Windows XP) which does two-way serial communication via the USB port to an Arduino Uno. In order to work it needs the Windows .NET framework and of course the Arduino driver. A colleague of mine would like to run this application on a MAC. I do have no knowledge whatsoever of MACs, so I can't write the "native" GUI and communication application for the MAC.

Therefore my question: Is it possible to run the existing Windows application in an emulated Windows environment on a MAC? Would there be any issues with the Arduino driver?

Thank you very much.
3  Using Arduino / Interfacing w/ Software on the Computer / Re: Arduino Uno and serial communication via USB on Windows 7 64 bits on: October 06, 2011, 01:15:05 pm
I deployed the exe as a completely standalone application. He doesn't have Visual Basic on his PC, I just instructed him to have all the .Net frameworks installed.

I'm quite sure that he has the driver installed, but I will check back with him. Also regarding the device manager.

What do you mean by "even though the arduino is recognized he has to update the driver"?

In any case, what I understand from your answer is that the COM communication via USB basically works under Windows7 64 bit. May it have something to do with his particular PC? I think there maybe needs to be some "component" in the PC to allow the conversion between serial COM to USB? Or is this not the case?
4  Using Arduino / Interfacing w/ Software on the Computer / Arduino Uno and serial communication via USB on Windows 7 64 bits on: October 06, 2011, 12:56:26 pm
Hi,

I have developed an application on an Arduino Uno which does serial communication via USB to a Visual Basic program. I developed under Windows XP and tested both under Windows XP and Windows7 32 bits. Everything works just fine. At the start of the PC application I can select the correct COM port and then everything works and communicates perfectly. I now sent the sketch and the Visual Basic program to a friend of mine who has Windows7 64 bits. There it does not work. He can select among the shown COM ports but doesn''t get any connection to the Arduino (I don't actually know whether the correct COM port is shown at all as I can not check for myself because he is quite far away).

Is there any known issue that the serial communication via a COM port (physical USB port of course) does not work from Windows7 64 bits?

If so, are there other Windows versions where this is also the case?

Do I have to make other ports than COM ports selectable in the PC application to get it to work?

Thank you very much for any answers.
5  Using Arduino / Installation & Troubleshooting / Re: Difference between USB connection and separate power supply? on: September 04, 2011, 08:57:41 am
Thanks very much for your answer. Not sure whether I understand correctly. What could make the board reset? Insufficient power? Or too much power? If it is too little, am I wrong thinking that the separate power supply provides more power than the USB port?

What do you mean by "12V and 1A is near the maximum of what onboard regulator can handle". Is it too much or too little?

My Uno is an original one (should be at least, but I am quite sure that it is).

6  Using Arduino / Installation & Troubleshooting / Re: Difference between USB connection and separate power supply? on: September 04, 2011, 05:41:57 am
Hello again. I still have the same problem and need to resolve it now. By now I know that it has nothing to do with trying serial communications without the USB port being connected. I also know that the reason is not the 12 V DC power supply itself (i.e. it produces clean 12 V DC)

Regarding JamesC45's comment: All I/O ports are used, but I don't think that I am drawing too much current off of the 5 V pin. The 12 V power supply can provide up to 1 A, which I do not need. If there were not sufficient current available, would it not be more likely to have this situation with the USB port only?

The symptons are still the same: When I only connect the 12 V DC power supply (WITHOUT the USB port) the pin 13 LCD flashes rapidly, nothing else happens. Unfortunately, as the USB port is not connected in this case, I can not check into the sketch what is happening. When the is connected via USB or via (USB AND 12 V DC power supply), the program executes correctly.

Is there maybe a difference between the different GND pins? I would assume GND is GND and it should not matter which of the different GND pins I use?

Thank you very much for any help.

7  Using Arduino / Installation & Troubleshooting / Re: Difference between USB connection and separate power supply? on: August 03, 2011, 10:26:00 am
I ASSUME that the power supply produces clean DC (but I don't really know nor can verify it). It's a standard power supply in plug form as they come with many devices. I am connecting it to the power supply plug on the Uno, not to the Vin pin.

As soon as I can procure AA cells I will try your suggestion.

Can anyone exclude that it is an issue with initializing/accessing the USB port from the sketch while there is no USB port attached?

Thank you, Johnwasser, and all others who might still answer!
8  Using Arduino / Installation & Troubleshooting / Difference between USB connection and separate power supply? on: August 03, 2011, 08:40:19 am
For the first time ever I have today been using my Arduino Uno connected to an external 12 V DC power supply instead of as connected to the USB port. To my surprise, instead of executing the loaded sketch, only the pin 13 LED was rapidly flashing. I connected the Uno back to the USB port instead of the external power supply and everything was working fine again.

Any idea what is going on here? In the loaded sketch, I do use the USB interface for transmitting data. This is however only happening in a part of the sketch, while other parts of the sketch do not do any communication (those parts which should have run when I connected to the external power supply). I do however always initialize the serial port at the very beginning of the sketch, independently of which sketch parts will actually be executed. Is it possible that the initialization with unconnected USB port is the reason for this behaviour? And if so, how can I automatically determine in the sketch whether the USB port is connected or not (in order to avoid any initialization or communication attempt when the USB port is not connected)?

Any help is greatly appreciated. Thank you very much.
9  Using Arduino / Installation & Troubleshooting / Re: HELP! How to DOWNload Arduino sketch (harddisk crashed) on: July 11, 2011, 12:52:10 pm
@robtillart,mrtaylor
Thank you very much for your help. I have continued trying to get my backup to work again, plugged it in in different plugs again and again und suddenly it worked again. In the future I think I will change my backup strategy, do backups more frequently and regularly and on at least 2 different media. Thanks again.

PS: Regarding the executable that I could have recovered from the Arduino, is there a tool with which I could have gotten back a readable sketch from it?
10  Using Arduino / Installation & Troubleshooting / HELP! How to DOWNload Arduino sketch (harddisk crashed) on: July 10, 2011, 03:24:51 am
Hi, my harddisk has crashed and the backup doesn't seem to work. I have lost my Arduino project sketch on which I am currently working! The only place I still do have the sketch is within the Arduino board itself. Is there a way of downloading it back onto the PC (actually the reverse of the upload is what I would need)?
Any help is highly appreciated. Thank you very much.
11  Using Arduino / Programming Questions / Re: Unique identification of each individual Arduino Uno board ?? on: May 01, 2011, 12:25:34 am
The "VID/PID combination" seems to go into the direction of what I'm thinking of (although at the moment I do not have the slightest idea what VID/PID is smiley-red). It would also only be a matter of READING such an ID, so it would actually not be "messing around" with it as I would not in any way try to change anything about it. However I wonder if it is possible to access this ID from a sketch?
12  Using Arduino / Programming Questions / Unique identification of each individual Arduino Uno board ?? on: April 30, 2011, 12:52:00 pm
Hi. Does anybody know if there is something like a unique identification of each individual Arduino board? I'm thinking of something similar to a MAC-address on Ethernet cards, something that could be read by a sketch in order to check whether it is running on one very defined Arduino Uno board. Something already existing and implemented in the board electronics, not anything that would have to be realized by additional external circuitry. Thanks for any ideas.
13  Using Arduino / General Electronics / Re: Connecting 2-coloured LED on: April 30, 2011, 12:44:25 pm
Thanks very much for all your suggestions. Unfortunately my LEDs have not arrived yet. As soon as I get them I will go for your proposals. Thanks again.
14  Using Arduino / General Electronics / Re: Connecting 2-coloured LED on: April 24, 2011, 02:43:02 pm
Thanks a lot for your suggestions so far. Sorry that I took a while to answer, but I was away today.

It is actually an LED with just 2 pins and colour change is made by changing polarity. Regarding the "forward voltage drop" I don't really know. For more details I have attached the data sheet.

Thanks a lot again.

15  Using Arduino / General Electronics / Re: Connecting 2-coloured LED on: April 24, 2011, 12:36:48 am
Thanks very much for your answer, CrossRoads. Knowing that I'm not really an expert in electronics smiley-red smiley-red (to say the least smiley-red) would it be possible to show or to point me to a connection circuit how this could be done. Thanks again.
Pages: [1] 2