I'm designing a simple circuit that allows me to generate a true analog voltage using an Arduino Uno & a digital to analog converter. The trick here is that I need to use the command prompt on my pc to tell the Arduino what voltage I want and I don't have any experience using the command prompt with Arduino. Can anyone help me with this or simply point me towards a good tutorial about it?
Use the serial monitor in the IDE. There You can type anything You like on the Pc keyboard and send to the Arduino.
Using the USB serial port, you can ‘pipe’ commands from the PC ‘CON’sole to the COM port.
The Arduino must be programmed to accept and parse your messages to do your bidding.
If you want to get more complicated, you could write a PC program to send the commands, and/or use the network to communicate with your project.
If you want use an application like PuTTY instead of the PC command line,, it gets simpler and more flexible.
if you wish to be realy sophisticated you could build a GUI to send instructions over the USB serial to an Arduino and receive data for display, e.g. a GUI which communicates with a UNO with a CANBUS shield to set parameters such as speed, ID size, masks, filters, etc
the above was built using Visual Studio C++ but could be implemented in C#, VB.net, Java (using NetBeans), etc etc
Thanks for the rapid response.
I'm familiar with the serial monitor & aware of apps like PuTTy but the person I'm doing this for wants to use the command prompt.
Can you refer me to tutorials that would help with piping commands?
Great, thanks
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.