Serial to USB cable?

I have a serial cable for my Garmin Etrex, one side a serial plug the other goes to my GPSR. I am about to get rid of my desktop and only use my laptops but I don't have a serial port on either. Knowing this the serial cable is useless unless I spend another $40 - $50 on a "Serial to USB Converter". So, I cut it to see what and how many wires are inside of it and found only three. I was thinking of making my own cable but I don't understand the difference between the two ports. I saw the GPS 'ible here and it's no help unless you don't have the serial cable already... Here are my questions:1. As long as I connect the proper data in, data out and ground to the USB cable shouldn't it work?2. Are serial ports and USB ports that much different?I read a lot on the pfrancs website and i noticed a few of the connectors looked like they may have had USB cables hooked to them. I've searched and searched but came up with squat! If you have a really good understanding about USB and serial ports can you please help me or direct me to someone who can? Thanks in advance!

Posted by martymunch 10 years ago  |  last reply 10 years ago


anyone got a good (CHEAP) method of doing wireless serial communication? ? Answered

Trying to do a PC controlled fireworks display and i don't want to have to buy a 100 foot serial cable to control relay box that i'm planning on using (that takes direct serial communication)?

Asked by crapflinger 9 years ago  |  last reply 8 years ago


using serial port switch on and of An LED

Hi friends i need to using serial port switch on and of An LED. and also i want to know about how db9 connector is sending and receiving the bits or bytes. I am Electrical & Electronics Engineering Student.... I need Some Tutorial To know about the Serial port.....

Posted by uvaraj6 11 years ago  |  last reply 11 years ago


How to get data from serial port to USB on android tablet?

Hi friends, I'm new in android. I have one tablet,usb-serial port data cable and GPRS device. Now my doubt is i want to get the data from gprs device using that cable.Because the gprs device will connect using the serial port.So it gives the data on serial port. I tried in many ways.But it's not working. Please let me know.

Asked by Lavanya S 6 years ago  |  last reply 6 years ago


I cant seem to find my board on serial port on arduino?

I am using an arduino mega2560, earlier this year I have programmed the board to blink and it worked, but then after I start  trying more sketches now, the board no longer shows on the serial port, both the power led and pin 13 led work(i programmed it before and it works) now I've tried it on several computers and my laptop but it still doesn't work please help

Asked by JennyL10 3 years ago  |  last reply 3 years ago


How can I type letters in serial-mon and save the input in a global array ?Can anyone guide me in the right direction?

For example, I am trying to create a program where there are multiple questions on serial-mon and the user can input his/her answer in. "How to spell 1?"  one (this is the answer) "How to spell 30?" thirty (this is the answer) I am trying to make my serial- mon page look like that. 

Asked by moshoo 1 year ago  |  last reply 1 year ago


plot serial data? Answered

Hello  i need to know how to plot serial data on computer , i have a data that comes from sonar sensor via xbeee to pin 19 rx on arduino mega , i can read those value but i need to plot it versus time and save its value  for pid results. i tried simplot and it work but it dosent save data, and im stuck on matlab and i couldnt make it work.

Asked by adiga123 5 years ago  |  last reply 5 years ago


WANTED: Arduino modules with RS-232

Somewhere previously, (which I thought I had favorited, but obviously didn't), someone pointed out USB Arduino modules are simply converting back to RS-232 when programming the chip. As I want to do my development without Windows or USB, I would like to know if there is anyone out there who has excess modules with RS-232 connectors directly attached, even if I have to pay for the USB versions as a swap. Otherwise, if someone knows these modules better, a USB by-pass straight to the RS-232 part of the module would also be appreciated. Mic

Posted by Treknology 4 years ago  |  last reply 4 years ago


What would be a suitable serial protocol? Answered

I'm currently working on programming a serial interface to put onto I/O devices (number pad, LCD, sensors, secondary microcontroller...) in order to reduce the amount of I/O pins and external connections needed. The only requirements are that it needs to use only two wires (excluding power), and it needs to be bidirectional. Ideally, I'd like to avoid anything that needs too much processing of data before transmission (like adding extra bits to prevent a string of '1's from setting off the error protection). Hopefully, this project will end up as an instructable at some point, so what would be a suitable protocol that would be compatible with common microcontrollers? Thanks in advance.

Asked by The Skinnerz 6 years ago  |  last reply 6 years ago


Make serial connected batteries easy to replace Answered

I am working on a project that requires two serially connected 9V batteries to power.  For when the batteries will need to be replaced, is there an easy way for a user to replace them without having to disengage wires and then solder new ones?  Is there a way to "rework" the typical battery caps used on 9V batteries?  Using an 18V battery is not an option because of the size of the container the battery is being placed in. I was thinking to use two battery caps, one to connect the positive and negative posts to make the two batteries (9V) serially connected, and then "rework" the other cap to connect the remaining posts on each of the batteries to provide power to the unit I'm making. Is there a way to do this ? Is it feasible?

Asked by ClaudyAW 2 years ago  |  last reply 2 years ago


If I use the serin command where is the serial data stored? Answered

 I am trying to get a GPS module outputting NMEA sentences in ASCII through a serial port to to store it's once per minute output in my picaxe 18X. From here i hope to read these sentences and using a look up table assign each letter or number that has been read a morse code form. This will then be sent to a 433mhz radio module and received on a scanner. I have programmed standard pics before but only using standard inputs and don't really understand where or in what form variables are stored on the picaxe chip so am therefore a bit confused as to how to go about using the serin command. Thanks for any help!

Asked by harrier07 9 years ago  |  last reply 9 years ago


Serial Port Prototypes

Has anyone made a serial port interface? I would like to build a rpm meter using a serial port of my laptop. The schematic should be easy but I can not find any information on it. Any ideas? Thanks, Brian

Posted by bsamc2000 11 years ago  |  last reply 11 years ago


is there a serial interface for commodore 64 cartridges?

I would like to know so that I can finish planning out my next project...

Asked by nerd7473 3 years ago  |  last reply 3 years ago


serial communication between arduino uno and nano

I want to build a prop/robot based of the persanality cores in portal/portal2 i want to make one of the ability is the persinality core to control a outside object via serial communications between arduinos i want to do this with a nano arduino and a arduino uno is this posible i would be really helpful 

Asked by noobduino 7 years ago  |  last reply 7 years ago


CP2101 USB to serial IC

Sparkfun makes an excellent breakout board for Silicon Laboratories' CP2101 IC. It looks like this board could be used to connect a PC to your microprocessor through a USB port without having to use a MAX232 IC to convert the TTL voltage levels to the serial port voltage levels and then a USB to serial converter. Drivers are available so the PC sees the CP2101 as a COM port so hyper-terminal could be used to communicate with the microP. The 'S' in USB stands for serial, it should would be nice to connect a PC to a microP using only one piece of hardware. Am I right about the CP2101 providing this ability?Any opinions would be appreciated.

Posted by nolte919 9 years ago  |  last reply 9 years ago


How do you get 3D Studio Max's MaxScript to receive serial port signals?

Is anyone familiar enough with MaxScript to know how to receive a serial connection from a USB-Serial adapter? In particular, I want to send a series of analog values to the program from an Arduino when a button is pressed (either a MaxScript panel button, or actual, physical button, whatever is easier).

Asked by victus_maestro 9 years ago


iTunes to Arduino

I was wondering if someone could help me find a way to display the name of a song currently playing on itunes with a scrolling 24x6 led display. im thinking of using the display from this instructable https://www.instructables.com/id/Make-a-24X6-LED-matrix/ it is coded to accept serial text input and display it on the matrix. my question is: how can i retrieve currently playing song's name and output it via serial to the arduino. btw, i know oe or two people have asked this before, but they were on macs and used AppleScript, which i cannot use because im on a windows pc

Posted by wootwootman 8 years ago


Does anyone know if it would be possible to use a serial port as a USB port? Like with some hack?

I own a bluetooth serial port adapter that I have no idea how to use.  I had the idea that perhaps it could be used as a standard USB port.  Would this be possible with any combination of hardware and/or software?  If not, would it be possible to create a bluetooth USB port by some other method, such as, with a standard bluetooth dongle?  I believe that this would open a great many  possibilities.  Oh, and let's just assume that I know nothing about soldering, programing, bathing, etc...

Asked by chuzzle44 8 years ago  |  last reply 8 years ago


Adafruits serial programmer help needed

For anyone that owns the serial port programmer, I need help. Where the plug is (cable plug to the micro circuit) What pins are what? the row thats o o-o-o-o- (1 alone, 4 connected) is the + - - - - - right? and whats miso and mosi then? Help! D:I don't under stand on the 10 pin clip, what the heck is what. The sites diagram says theres 9 circus, 1 square. well, theres 10 squares!! It also shows near the plus side, the other 4 pins are ground. well, that means the MOSI,(NC)RESET,SCK, and MISO are all connected. Dont think so.For people who have the circuithttp://img402.imageshack.us/my.php?image=picture435mw5.jpgIt be nice if u can label the 10 pins for me, thanks

Posted by Killa-X 10 years ago  |  last reply 10 years ago


Send and read 2 independent serial data's

Hi there! I am working ona quad copter.. In which I want to control 4 motors by 2 pots. My problem is I can send and control 2 motors by a pot.. But how do I control other 2? Wont the serial data of the 2 pots mix up? I am attaching a sample of my code to montor the inputs and control 2 motors by a pot.. #include Servo myservo; int pos = 0; int poth = 2; void setup() { Serial.begin(9600); myservo.attach(3, 1700, 2400); while(Serial.available() <= 0) ; int incomingByte = Serial.read(); if(incomingByte == 115) { loop(); delay(1000); } } void loop() { int vert=analogRead(poth); int pos = map(vert,0,1023,0,180); myservo.write(pos); Serial.println(pos); delay(1000); } I just cant tell which is which  how can I setup a communication protocol to identify which data is which?

Posted by schandwadkar 7 years ago


How to program the XS3868 bluetooth audio module through arduino?

Hello, I have a few of these xs3868 bluetooth audio modules that I used in some speaker systems I built for myself, but now one of my friends wants me to build him a custom speaker with a custom bluetooth device name and passcode. So I thought, ok, I read a little about programming with the AT commands but never tried it before, so I hooked up a board to 3.3 and gnd of the arduino like I usually do to check before soldering everything, my phone connected with no problem. So next I turned off my phone's bluetooth so it wouldn't mess with the chip while programming it and connected the rx and tx pins of the board to tx and rx respectively. I also made the following adjustments in the arduino serial interface that I remember reading somewhere: No Line Ending, and 9600 baud rate. Plugged in in to the tx and rx of the arduino board with at mega chip removed and had no luck getting any response from the chip, I switched baud rate to all of the different baud rates available with no success, the only effect the chip has on the serial interface is that when the power cord slipped and I plugged in back in with rx, tx and the usb cable still connected it output a few seemingly random characters while (I'm assuming) the chip was booting up, at 115200 baud rate the characters were a "u" with two dots over it and a combination lowercase "b" and "p" (for some reason I can't copy/paste it). It only outputs these characters when one of the power wires is reconnected after being disconnected (I have a bunch of these so if I fry one it's no big deal). I tried connecting my phone again after a while and it worked, checked the wires with my multimeter and both are connected and neither is shorted to any other pins and switching rx/tx does nothing to fix the problem either. I have a usb to serial coming in the mail soon hopefully but my friend was hoping this could be finished sooner than it would arrive so any help would be greatly appreciated. Edit: Is it possible that the module could have a rs232 interface, rather than a ttl interface? I've heard that arduino only uses ttl and that I'd need another adapter to get to rs232 since my computer doesn't have that kind of serial interface.

Asked by LazyH 3 years ago  |  last reply 19 days ago


soft serial communication on Arduino Micro.

Hello all, I have a few Arduino Micro units, and need to connect them together (in a mesh network) so that every unit in it is interchangeable, meaning that any unit may be in connection with more than one unit. As the Master/Slave form is out of question at this stage (because any given unit cannot be both Master and Slave at the same time, of course) I decided to go for a simple serial communication. However the Arduino Micro units (and frankly none of the Arduinos) do not have sufficient serial pins and I was advised to use Soft Serial instead. I was looking into the pin out of the Arduino Micro but cannot quite figure out which pins I can use for the serial comm.; I need 4 to 6 serial communications. Any help is much appreciated, as the nature of the problem may not be changed. So I need to solve it as it is. Karim.

Posted by karimskarim 3 years ago  |  last reply 3 years ago


Measuring a Bluetooth modules output? Answered

There is a serial Bluetooth module that I have used before on an Arduino project but now I'm trying to use in a project without the Arduino. Basically I need it to be an electronic trigger, I don't care really what the signal is just how long and the voltage and current. There are 4 pins on the module: Vcc, GND, Tx, and Rx. There are 2 open pads: Key and State. When I send a command from my phone the module sends a signal out the Tx pin, and it is this signal I would like to measure so I can pick a command with an appropriate signal and tailor the rest of the circuit accordingly. I tried a voltmeter between Tx and GND but saw no signal on any level measuring DC. Is there something I'm missing? Is the signal more complex or different, or is that test setup flawed? I tried other combinations, Rx-GND, Tx-Rx, RX-Tx, GND-Tx, GND-Rx but saw nothing.

Asked by bwrussell 6 years ago  |  last reply 6 years ago


I need help creating a basic interface for arduino. Answered

I was wondering what would be the best prgram to learn for creating UI's for sending signals to an arduino, this would be simply like a button or box that a value could be typed in for now i plan to just play with some LED's but my goal is to have an interface with the equivalent of a d-pad so that i could control the pan/tilt of my latest project and later on (my next project) control the speed of motors/servos or activate preset patterns for a spirograph  i would really like to get started and learn how to but im at a loss in where to start

Asked by shabaki 6 years ago  |  last reply 6 years ago


Arduino stop the loop?

I have a problem with my code, i basically move a motor with the help of 3 relays, when a sensor does not detect the presence of an object part of a call, everything works perfectly, if it was after having called the function CHIAMATA() the arduino loop() stop unexplains, i certainly made a mistake, but i do not understand which. thanks for your help this is the code.... #include #include #include swRTC rtc; //create a new istance of the lib SoftwareSerial mySerial(3, 2); const int buttonPin = 19; const int sensorPin = 9; const int allarmPin =  13; int buttonState = 0; int sensorState = 0; int relay1 = 8; int relay2 = 7; int relay3 = 6; int var = 0; // initialize the stepper library on pins 8 through 11: void setup() {     rtc.stopRTC(); //stop the RTC     rtc.setTime(12,0,0); //set the time here     rtc.setDate(4,6,2012); //set the date here     rtc.startRTC(); //start the RTC   Serial.begin(19200); //choose the serial speed here   mySerial.begin(19200);   pinMode(allarmPin, OUTPUT); } void loop() { while(mySerial.available()!=0);{}delay(10);     Serial.print(rtc.getHours(), DEC);     Serial.print(":");     Serial.print(rtc.getMinutes(), DEC);     Serial.print(":");    Serial.print(rtc.getSeconds(), DEC);     Serial.println(" "); //stato riserva croccantini sensorState = digitalRead(sensorPin); if (sensorState == HIGH) {     // turn LED on:     digitalWrite(allarmPin, HIGH);     Serial.println("Croccantini esauriti");     Serial.println("Spia allarme ACCESA");     Serial.println("Tramoggia DISABILITATA");     Serial.println("Imposto la chiamata");     while(sensorState == HIGH) {CHIAMATA(); break;}   } else {     // turn LED off:     digitalWrite(allarmPin, LOW);     Serial.println("Croccantini OK");   } if (sensorState == LOW && rtc.getHours()== 12 && rtc.getMinutes()== 00 && rtc.getSeconds()== 5) {startmotor();}   //start manuale carico/scarico   // read the state of the pushbutton value:   buttonState = digitalRead(buttonPin);   // check if the pushbutton is pressed.   // if it is, the buttonState is HIGH:     if (buttonState == 1) {       Serial.print("Pulsante alimentazione manuale ATTIVO");                               // turn on:   // singlestartmotor();   }         } void startmotor(){ //numero di cicli di carico da eseguire (5) while(var < 5){ pinMode(relay1, OUTPUT);   pinMode(relay2, OUTPUT);     pinMode(relay3, OUTPUT); digitalWrite(relay3, LOW); //ABILITA TUTTO //AVANTI digitalWrite(relay1, LOW); digitalWrite(relay2, LOW); Serial.print("AVANTI"); delay(1000); // wait 2 seconds digitalWrite(relay3, HIGH);//STOP TUTTO digitalWrite(relay1, HIGH); digitalWrite(relay2, HIGH); delay(1000); //ATTESA PER INVERSIONE MARCIA //INDIETRO digitalWrite(relay3, LOW);//ABILITA TUTTO digitalWrite(relay1, HIGH); digitalWrite(relay2, HIGH); Serial.print("INDIETRO"); delay(1000); // wait 2 seconds   digitalWrite(relay3, HIGH);//STOP TUTTO   delay(5000); // wait 2 seconds   var++; }} void CHIAMATA() { mySerial.println("ATD329xxxxx135;");//dial the number, xxxx ix the phone number. delay(100); Serial.print("Chiamata in corso..."); return loop();}

Asked by cris92 1 year ago  |  last reply 1 year ago


Help with MAX232 Serial Converter troubleshooting?

Ok..long story short.. built this Instructable: (minimal Arduino on poerfboard,.  w/ blank Atmel) I put this on a breaboard instead https://www.instructables.com/id/Perfboard-Hackduino-Arduino-compatible-circuit/ I then installed Arduino IDE, as well as WinAVR/avrdude I tried to build a parallel programmer: http://www.arduino.cc/en/Main/ParallelProgrammer but it didnt work.. (not sure if it because of WinAVR?avrdue setting?  but command line AND flashing bootloader through Arduino IDE did NOT WORK.. AVRDUDE gives this response: avrdude: can't open device "giveio" avrdude: failed to open parallel port "lpt1" pinout for parallel programm was as follows: PP     ATMEL  (pinout) 1    -  19 2    -  17 11  -  18 16  -  1 18  -  GND on breadboard*** no clue even Ive asked and googled.. couldnt find a 'real' solution to this.. so I looked around..and I found a couple MAX232 chips laying around..figured Id use these to build a Serial Converter using this tut: http://sodoityourself.com/max232-serial-level-converter/ I this all set-up on my breadboard: (pics to check what Im doing wrong) *******(the images shows the vRegulator moved over 1 pin..it has been corrected but after pic was taken) http://dmstudios.net/misc/max232_circuit/top.jpg http://dmstudios.net/misc/max232_circuit/1.jpg http://dmstudios.net/misc/max232_circuit/2.jpg I have checked the vRegulator portion..  I have a cap BEFORE the regulator  *bridging GND & output* and I use my meter to check that there is, in fact, 5v coming from it..  and there is... HOWEVER...  the vRegulator gets SUPER HOT, SUPER FAST!... if I dis-connect the pin 16 form the  chip to the ++ then the vRegulator does NOT get hot... once I bridge it.. instant HEAT.. so is it something I have done wrong in my diagram? http://dmstudios.net/misc/max232_circuit/diagram_1.jpg vRegulator not show in diagram here;; in this diagram.. as soon as I hook up the V++ to pin16 on the chip.. and the cap..etc  something is wrong?? I 'do' have some FTDI cables coming from China for a few bucks.. but this is ONLY for sketch uploading...correct? I also have a true Arduino Due coming as well... but hate waiting weeks when I want to play and get started now! Any help is appreciated..   Im new to all this, so be nice!  LOL thanks gang!

Posted by xl97 8 years ago


RTC Alarm using serial monitor

Hi, I have an arduino UNO and RTC DS1307. I want to make an alarm that just displays on the serial monitor of arduino UNO. I can make the RTC show the right time on the serial monitor, however I want an alarm to go off on the serial monitor. Also, is there any way that I can change the alarm time on the serial monitor? Like I can type from my keyboard and the time changes? One more question, How can I make arduino do multitasks using RTC. Like when the alarm goes off, it can run a small DC motor and also a Pizep Buzzer.  Please help me with this, as I desperately need a help :((

Posted by Bam Boy 5 years ago  |  last reply 5 years ago


Serial/Console Interface for Video Brochure?

Hello All!  I recently acquired one of those cheap video brochures (the kind that loops a video on full volume until you want to dash it against a wall)... Anyways, I couldn't resist the urge to hack with it, so I pulled the enclosure apart to expose the electronics. Inside I found a magnetic switch, a USB mini connector with all pins wired (two power/two data), a motherboard with three ICs and a scattering of other components, and a rechargeable battery (seems to be LiPo) all wired up to a 5.5" display. I plugged the usb to my computer and it mounted as a drive labeled "MediaPlayer". Inside was the original video file that I replaced with one of my own videos in the same format. It now plays my video with sound. Where I am stumped is with the circuit board. I have not found any markings on the board itself, however it has some pins around the edge to which the switch and speaker were connected to (I'm guessing these may be GPIOs.....). There is also an unpopulated four pin header (to the right of the display connector) that looks like it may possibly be for another USB port. There are also four solderable connections (on the bottom of the left side of the board) that are labeled GND, HRP, HRL, and DET... I wasn't able to find any meaning for those, but is it possible to establish communication through that? Last but not least, the three ICs on the board seem to be a CPU, and two flash chips. The markings on the center one (which I'm assuming is the CPU) are: F1 E200 F8148DA 19H1  The second IC, to the right of the "CPU" is marked: hynix 812A HY5DU121622CTP-D43 KOR N7EAX553Q2 - also engraved with the letters JHY The final IC, left of the "CPU" is marked: hynix KOR HY27UF082G2M TPCB 604A M8SD53321 According to Google, the E200 refers to the all winner E200 SoC that supports UART, SPI and TWI... It also says that it runs OS Melis 2.0... I would like to hack into this system if possible and/or find a way to interface the LCD through SPI for my Pi Zero... Any help is greatly appreciated! Thanks! I included a couple of High Res photos to show the PCB (the display ribbon cable has been removed to show the third IC). 

Asked by JoeW79 2 years ago  |  last reply 1 year ago


Can UART or FTDI serial work with communication in only one direction? Answered

Can UART or FTDI serial work with communication in only one direction? or no? Or is there no universal protocol (as in UART only defines the type of connection, not what data is sent though it)  I am building a quadcopter and was thinking of using one of the 2 audio channels to send serial data down one of the spare channels, and the other channel is just connected to a microphone to 'listen' to the noise of the props. I have 2 major concerns with this method: Will the frequency response and bandwidth of the audio channels be high enough to carry a 115200 bauds signal, or at the very least a 9200 baud signal? and the original question; do I need a 2-way connection for information from the UBLOX GPS or multiwii output? If yes, then i guess the only way to get telemetry is to get one of those 900MHz transmitters, yet another board that I will have to deal with.

Asked by -max- 4 years ago  |  last reply 4 years ago


Short range serial data link. Answered

What is the cheapest way to set up a short range (200m) serial data link? Also, what are the best options for secured and unsecured links?

Asked by alexhalford 9 years ago  |  last reply 9 years ago


Program to read/write data on usb?

I am looking for a program or at least how it can be done on visual basic that: allows the user to read incoming serial information and produce outgoing serial information on windows. Example: Write is selected > Baud rate selected > binary data entered Result: serial data is transmitted through the usb port Thanks!

Asked by seanroberts 8 years ago  |  last reply 7 years ago


Can the CP2101 USB to serial IC be used to connect a microP directly to a PC without an RS232 port and a MAX232 IC?

Sparkfun makes an excellent breakout board for Silicon Laboratories' CP2101 IC. It looks like this board could be used to connect a PC to your microprocessor through a USB port without having to use a MAX232 IC to convert the TTL voltage levels to the serial port voltage levels and then a USB to serial converter. Drivers are available so the PC sees the CP2101 as a COM port so hyper-terminal could be used to communicate with the microP. The 'S' in USB stands for serial, it should would be nice to connect a PC to a microP using only one piece of hardware. Am I right about the CP2101 providing this ability?

Asked by nolte919 9 years ago  |  last reply 9 years ago


Arduino code Porting Please Help? Answered

Hi please can someone port this code from lcd - to serial output to pc thanks :)  http://www.thebestcasescenario.com/forum/showthread.php?t=25092 /*Arduino Controlled Voltage Monitor Code by Will Lyon 12/5/2010 Code for project Power House on TBCS http://www.thebestcasescenario.com*/ #include //Initialize the library with the numbers of the interface pins LiquidCrystal lcd(7, 8, 9, 10, 11, 12); void setup() {   lcd.begin(16, 2);                      //Set up the LCD's number of columns and rows   lcd.print("  POWER  HOUSE");           //First line opening message   lcd.setCursor(0, 1);   lcd.print("Desktop Pwr Unit");         //Second line opening message   delay(5000);   lcd.setCursor(0, 1);                   //Clear bottom line   lcd.print("                ");   lcd.setCursor(0,0);   lcd.print(" 3v    5v   12v");          //Update top line readout } void loop() {   lcd.setCursor(0, 1);   float f = analogRead(0) * 4.88 / 1023;   // 3.3 => 9.9   lcd.print(f, 2);                        // print float with two decimals   lcd.setCursor(6, 1);   float g = analogRead(1) * 8.5 / 1023;   // 5.0 => 9.9   lcd.print(g, 2);     lcd.setCursor(11, 1);   float h = analogRead(2) * 17.25 / 1023;  // 12.0 => 25.0   lcd.print(h, 2);   delay(1000); }

Asked by Daniel Deacon 6 years ago  |  last reply 6 years ago


How can I make my arduino communicate with a Windows 10 computer with a C application?

Hi I was hoping someone could help me with this. I am very new to the C programming language and I am trying to write a  simple program with a button that when clicked sends my arduino a "1" so that my arduino knows to send me some sensor readings. My arduino is on COM5. if you know anything about this I would like if you gave me some example code that I can hack. Thanks.

Asked by IsaacPierce 2 years ago  |  last reply 2 years ago


arduino Blimp

Hey guys. I'm building an RC Blimp right now and i want to add an autonom landing feature which means the blimb has to realise when there is no more serial communication through the xbee. right now the aircraft gets 3 char-type objects. ech of these 3, for example "1=#" represents the speed for one motor. the 3 ASCII symbols get send every 0.1 seconds. any ideas how the arduino can realise that the connection is interrupted?  heres my code, thanks for helping me out:) #include #include "Wire.h" #include "SRF02.h" /*Testprogramm zur Treiberprogrammierung Team Grün*/ SRF02 srf02[2] = {   SRF02(0x70, SRF02_CENTIMETERS), //Initialisierung der beiden Ultraschallsensoren   SRF02(0x71, SRF02_CENTIMETERS), }; unsigned long nextPrint = 0; //------------------------------------------+ Servo servoLeft; // create servo object     | Servo servoRight;//                         | Servo servoYaxis;//                         | //------------------------------------------+ int motorSpeed; int verticalSpeed; int pinGreen = 8; //rgb colors int pinRed = 4; int pinBlue = 7; int ledPin = 2; int signal = 0; void setup() {   //--------------------------+   Serial.begin(9600);//     | Serial   Wire.begin();//           | Ultraschallsensor   SRF02::setInterval(100);//| Pulsintervall   //-------------------------+   //Servo Liste   servoLeft.attach(6);   servoRight.attach(5);   servoYaxis.attach(9);   char str[4] = {     '\0'  };   char command[3];   int a;   pinMode(pinGreen, OUTPUT);   pinMode(pinRed, OUTPUT);   pinMode(pinBlue, OUTPUT);   pinMode(ledPin, OUTPUT); } void loop() {   char str[4] = {     '\0'  };   int a;   int j = 0;   int mL, mR, mY;   if (Serial.available()>=3){     for (byte i=0; i<3; i++){       a = Serial.read();       if (j == 0){         mL = a;       }       if (j == 1){         mR = a;       }       if (j == 2){         mY = a;       }       j++;     }     if(mL == 181){       Serial.println("Recived Command:");     }     else{       Serial.println();       Serial.println("MotorValues:");       Serial.println(mL);       Serial.println(mR);       Serial.println(mY);       Serial.println("------------");       servoLeft.write(mL);       servoRight.write(mR);       servoYaxis.write(mY);       //---------------------------------_-:+*COLOR*+:-_-------------------------------       if(mL==90&&mR;==90&&mY;==90){         //show zeropoint         digitalWrite(pinBlue, LOW);         digitalWrite(pinRed, LOW);         digitalWrite(pinGreen, LOW);       }       if(mL         digitalWrite(pinBlue, LOW);         digitalWrite(pinRed, HIGH);         digitalWrite(pinGreen, HIGH);         }       if(mL>mR){         digitalWrite(pinGreen, LOW);         digitalWrite(pinRed, HIGH);         digitalWrite(pinBlue, HIGH);         }       if(mL==mR&&mL;!=90){         digitalWrite(pinBlue, HIGH);         digitalWrite(pinRed, LOW);         digitalWrite(pinGreen, LOW);       }       if(mY!=90){         digitalWrite(pinBlue, LOW);         digitalWrite(pinRed, LOW);         digitalWrite(pinGreen, HIGH);       }                 }   } }

Posted by willi1131 3 years ago  |  last reply 3 years ago


Making a Computer program to output serial data to an arduino?

      I am making an underwater ROV, like a remote controlled submarine, and I am looking for a way to control it.  All of the commands are set up to run off of serial commands going to the on board arduino.  This is what I would like to know: Is there an easy way to send custom serial data over a computers USB port, controlled by some sort of virtual controller

Asked by ConnorFD 1 year ago  |  last reply 1 year ago


Serial terminal emulation help, please? (again...) Answered

Before you read below, read this: https://www.instructables.com/answers/Updating-1980s-X-Terminals/ I've finally gotten around to setting up PuTTY to work with the serial line. Communication is fine, I'm pretty sure I have the baud rate and everything set up correctly, but I still have one problem. The POS program has a login phase, which works perfectly. However, right after the program itself starts and finishes spitting out its splash screen, copyright information, etc., problems start emerging. Putty doesn't seem to be rendering formatting correctly, or maybe not at all. Whenever text needs to be highlighted, or there need to be shape characters like ┌, or ┤, all I see in the window is garble like this: ae&ae;&ae;&ae;&. Also, no line breaks are given. How should I fix this? Should I change a specific setting in PuTTY? Should I be using a different program? ***More information about the original terminal, more specific examples and screen-shots will supplied shortly.*** Kind-of update: Wait, what? So apparently, those two characters above give the same garble on html as on the terminal. They are supposed to be ASCII characters 218 and 195. Note that these are part of the extended ASCII codes (I just realized that). Does PuTTY have an option support ASCII characters 128 to 255? In the character encoding pane of PuTTY setup, I've tried every encoding available. Do I need to type in a name of an encoding manually?

Asked by aelias36 8 years ago  |  last reply 8 years ago


can i talk to multiple arduinos at the same time with another arduino, in a serial format?

Hello all, I am trying to talk to multiple (say 4) microcontrollers (Arduinos) at the same time. I was wondering if i can setup a serial connection, with a selection line that can detect the neighbor Arduino and enable the corresponding pin to start the serial communication between the two. something like this:

Posted by karimskarim 3 years ago  |  last reply 3 years ago


Is there any way for the Serial port to detect continuity?

Like if i have 3 switches how could i detect weather they are on of off? Keep it simple,thanks. Edit:its the 9 pin serial port

Asked by ReCreate 9 years ago  |  last reply 9 years ago


Bluetooth speaker serial port communication hack?

Hello everyone, Recently I bought BT speaker (chinese to be specific) it is great, and I tried connecting it to my Win7 PC. It is interesting, because instead of audio device it installed two serial ports on my computer. I am wondering if this can be somehow useful. Maybe i can turn off voice notifications in the speaker or other settings. But the problem is I do not know any serial port commands that I can use.  If you know what can be done using this bluetooth serial port please message me or reply in this topic. here is photo of the speaker if it is somehow helpful. Later I can add some photos of thew chips inside if needed.

Posted by kondzio29 3 years ago  |  last reply 3 years ago


free Barcode reading software via webcam? Answered

I'm searching for a free program that can use a webcam to scan UPC barcodes and convert them into text or serial output. No 2-D barcode programs please, just something that could read a soup-can or something! happy hunting!

Asked by Kilt Y 8 years ago  |  last reply 4 years ago


3 wire interface (GND, VCC, DATA)? Answered

Hi guys,   I'm trying to reverse the communications on a project I have at the moment which seems to be using a 3 wire serial interface (GND, VCC, DATA).  My goal would be to replicate the communications with an arduino or similar, however i'm not 100% sure what serial protocol it's using.   The device is using an Atmel ATMEGA168 and the pcb is covered in conformal coating, so I haven't had a whole lot of luck tracing the pins. I'm not overly aware of many one-wire communications protocols.  The datasheet says the ATMEGA supports various peripheral features, including SPI, USART, 2-wire serial (Philips I2C) (among others), however the GND, VCC, DATA configuration doesn't seem to fit with any of the supported protocols (i.e. there's no clock line and only a single data line).   The captures i'm getting seem to indicate that it's an 8-bit binary protocol.  I was going to try to decode it manually and attempt to reproduce it, however would be grateful if someone recognizes it and can point me in the right direction. Does anyone know any protocols / configurations this could be?  Example screenshot attached. Any help would be greatly appreciated!  Thanks!

Asked by ikarus6 3 years ago  |  last reply 3 years ago


can i program a pic microcontroller with my second monitor port? Answered

Im thinking of building a pic programer, will my laptops external display port work?, i would perfer usb, is there a small usb programer?

Asked by pwnag3 7 years ago  |  last reply 7 years ago


Notifications from Android to Arduino via Bluetooth

I would like my phone to relay my notifications from the notification tray to an arduino. I had done alot of snooping around, and I have not found anything regarding doing that. Closest thing I had come to was sending notifications from the arduino itself, to the phone. But I want it the other way around. The idea is that it would display it to one of those 16x2 LCD displays, scrolling through whatever the notification says. I have yet to get the LCD, but in the meantime, I'd like to see about getting it to come through to the serial monitor. Does anyone know how to get android to do something like that?

Posted by Dashing Rainbow Dash 1 year ago  |  last reply 1 year ago


How to input NUMBERS through Arduino serial.monitor ???

Hello ... I would like to ask, how can my Arduino read/store a number that I sent through the serial.monitor ??? For example ... if I want to say to Arduino, how fast it should flash a LED or how fast should a motor turn. So it reads, what number I write to the serial.monitor and then use it. I was trying to find the answer in arduino forum, but I could not find it. What I was able to find are these infos : 1. I have to check, if it is a number (from 0-9) or a character ... (I have no problem with that) 2. it has to stored and then convert to number Thank you in advance. Zholy

Asked by zholy 9 years ago  |  last reply 2 years ago


How to drive serial data via (shift registers) AVR?

Is there some sort of code that will allow easy serial data tranfser from an AVR to a shift register (specifically the max6921 driver)? Thanks

Posted by guyfrom7up 9 years ago  |  last reply 9 years ago


is an external display port a serial port? Answered

Asked by pwnag3 7 years ago  |  last reply 7 years ago


Cheaper way to program PICAXE? Answered

The USB programming cable for a PICAXE is $25, which seems a bit high. The serial cable is only $5 but my computer doesn't have a serial port. So. This is what I propose to do. Use these the serial cable and a USB to serial cable and a cheap proto board like so: USB to serial + Serial to PICAXE + PICAXE Will this work? If it does, it can save about $12.

Asked by cowmanpoke 7 years ago  |  last reply 7 years ago


are there any arduino codes that allow you to display the time with the serial monitor, and no external hardware?

I tried DateTime from the playground, but it doesnt seem to want to work. i made sure everything was working, and the code compiled correctly, but when i open the serial monitor, nothing is there. i made sure the baud rate was correct. im using arduino 0017, and vista

Asked by lunchboxslayer27 9 years ago


how to set alarm of rtc clock by sending serial command

Hi! i am facing problem in my next task of the project which is to set the alarm time of rtc through my smart phone here is the code for this task  .. #include #include #include    virtuabotixRTC myRTC(6, 7, smiley-cool; int led=13; char h=8 ; char m=30; char s=0; void setup() {   Serial.begin(9600);   pinMode(led,OUTPUT); setTime(8,0,0,16,7,14);    myRTC.setDS1302Time(00, 00, 8, 3, 14, 7, 2014);} void loop() {   myRTC.updateTime();   // Start printing elements as individuals                                                                     Serial.print("Current Date / Time: ");                                                                   Serial.print(myRTC.dayofmonth);                                                                          Serial.print("/");                                                                                       Serial.print(myRTC.month);                                                                                Serial.print("/");                                                                                       Serial.print(myRTC.year);                                                                                 Serial.print("  ");                                                                                       Serial.print(myRTC.hours);                                                                                Serial.print(":");                                                                                        Serial.print(myRTC.minutes);                                                                           Serial.print(":");                                                                                      Serial.println(myRTC.seconds);                                                                           Alarm.delay(1000); // wait one second between clock display if (Serial.available() >0)   { h= Serial.read();  //dont know how to make   m=Serial.read();// these three commands to   s=Serial.read();//work properly through proper  programming command    Alarm.alarmRepeat(h,m,s, morningalarm);  // alarm set through smartphone } else{ Serial.println('nothing have been sent'); }} // functions to be called when an alarm triggers: void morningalarm(){   Serial.println("Alarm: - turn lights off");   digitalWrite(led, HIGH);  } plz do help me out in this ...how should i receive hour minute and seconds at a time serially and put them all together in alarm command so the alarm is set to a new time which is specified by the user through his smart phone

Posted by ash124 4 years ago