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

Topic by bsamc2000   |  last reply


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.

Question by adiga123   |  last reply


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!

Topic by martymunch   |  last reply


Serial port not found?

I tried to use my arduino today but COM3 couldn't be found. I tried it with older versions and other USB ports but it still didn't work. Anybody knows how to fix it?

Question by yonch   |  last reply


Serial communication on Arduino? Answered

I tested a QRD1114 reflective sensor using a voltage meter, and was working great. I was getting good responses from the sensor (one of the sensors I was using had a bad LED which was not working, but the sensor worked fine with an external IR LED that I had laying around.) But as soon as I hooked it up to an analog input pin of my arduino board, and used the serial communications to display the reading from the sensor on the serial monitor, every reading would be 1023 (which should be the highest possible reading) even when there wasn't anything near the sensor. I changed the pin, so I know it isn't a defective pin. I repeated the test with a photo cell and got similar results. what could be the problem, and what can I do about it?

Question by Higgs Boson   |  last reply


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)?

Question by crapflinger   |  last reply


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.

Topic by nolte919   |  last reply


Phototransistors interfacing with a serial port

So I really don't have too much experience with interfacing stuff and PCs (read: none) and I have a question. If I was to wire up about 5 phototransistors in series, all with a laser aimed at all of them, with the anode hooked up to TxD, and the cathode hooked up to RxD, and I had a program sending 500 bits to it per second, and checking for response.. will it basically be able to detect if one of the lasers are broken? Thanks!

Topic by cvxdes 


Attiny 2313 & Serial Port

Is it possible, using just an Attiny 2313, to exchange data with a computer via serial -- or do I need one of those RS232 chips?Theoretically, I think I can, using the digital IOs, dispite its lack of efficiency, but there may be some problem with that...Sending is the main part that I'm not quite confident about ;-)

Topic by zachninme   |  last reply


how to read serial arduino?

I have sonar sensor ez0 and i want to read from arduino  and this is his datasheet link http://www.maxbotix.com/documents/MB1000_Datasheet.pdf i saw this tutorial how to connect to pc: http://www.maxbotix.com/articles/034.htm but i need to connect it to arduino any one can help with that , i need to read serial reading of sonar i need it for https://www.instructables.com/answers/how-to-read-sonar-using-xbee

Question by britich 


driver for usb to serial converter ?

Hello , I want burn some hex code into the memory of microcontroller so recently I bought usb rs232 serial cable with driver cd. after installing driver I can't find com port in device manger  I see only two option window 7 PORT (COM&PORT;) ZTE Diaagnostics Interface (com 4) ZTE NMEA Device (COM 5) when cd (overfly ) load it come with following files BF-1284 CH341SER direct and net link driver guiter cable driver HL-340 UEPA15C USB RS232 PL driver USb -RS232 I have installed USB RS232 PL driver and USb -RS232  . but I can't find com port in device manger for serial cable ?        

Question by vead   |  last reply


how xbee serial work?

Hello i read ultrasonic sensor serial connected to arduino but when i connect xbee between sensor and arduino and i configur my and dl matching and same id what i need to config else i work on 3,3v what i need to do to make it same as i read direct from sonar . this is my code reading from sonar and convert to distance ,i need same work on 2 xbee between sonar and arduino. #include SoftwareSerial mySerial(8, 9,true); // RX, TX int BW=4; char *buffer; byte x; char array[3]; int counter=0; void setup() {   // put your setup code here, to run once:   // set the data rate for the SoftwareSerial port   Serial.begin(9600);   mySerial.begin(9600);   pinMode(BW,OUTPUT);   digitalWrite(BW,LOW);   delay(250);   Serial.println("Calibrartion Cycle ");   delay(150); } void reading(){   mySerial.println(1); while (mySerial.available()) {    x= mySerial.readBytes(buffer,1);    if(*buffer==0x52){    x= mySerial.readBytes(buffer,1);    array[0]=*buffer;    x= mySerial.readBytes(buffer,1);    array[1]=*buffer;    x= mySerial.readBytes(buffer,1);    array[2]=*buffer;    } } delayMicroseconds(220); } void loop() {   // put your main code here, to run repeatedly:   reading();   int Final_inch=(array[0]-48)*100 + (array[1]-48)*10 +(array[2]-48) ;   float Final_cm=Final_inch*2.54;   Serial.print(Final_inch);   Serial.println(" Inch ");   Serial.print(Final_cm);   Serial.println(" cm ");   delay(200); }

Question by adiga123   |  last reply


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.....

Topic by uvaraj6   |  last reply


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.

Question by Lavanya S   |  last reply


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

Question by JennyL10   |  last reply


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. 

Question by moshoo   |  last reply


is there a serial interface for commodore 64 cartridges?

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

Question by nerd7473   |  last reply


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 

Question by noobduino   |  last reply


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

Topic by Killa-X   |  last reply


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?

Question by ClaudyAW   |  last reply


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!

Question by harrier07   |  last reply


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).

Question by victus_maestro 


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...

Question by chuzzle44   |  last reply


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

Topic by wootwootman 


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.

Question by LazyH   |  last reply


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.

Question by bwrussell   |  last reply


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

Question by shabaki   |  last reply


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();}

Question by cris92   |  last reply


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?

Question by alexhalford   |  last reply


Controlling Arduino through the Serial Monitor

Http://www.marginallyclever.com/2011/10/controlling-your-arduino-through-the-serial-monitor/ I find I need to tweak parameters in my arduino apps and I don't want to have to upload the code over and over again.  This code snippet lets me open a serial monitor and adjust special parameters "on the fly". I hope you find it useful.  I use it in every one of my robots!

Topic by aggrav8d 



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.

Topic by karimskarim   |  last reply


Micro USB Serial connection to arduino?

I was planning on getting an Android tablet (Archos 70) and connecting it to an arduino to make a telepresence robot like shown here. I was wondering how i would make a Serial connection from the tablet to the arduino. I know there is an audio serial output, but then i can't have audio for the robot operator. And bluetooth has been ruled out as to expensive. The cellbots that are currently used are connected by usb mini, but the tablet uses micro.  Thanks a Bunch!

Question by Chowmix12   |  last reply


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.

Question by The Skinnerz   |  last reply


dkduino and usb serial converter driver

I have a dkduino and a usb to serial converter, both running on a profilic usb to serial chip, when i look at them in device manager, th has a code 10, ive tried updating the drivers and whatnot, what should i do?

Question by The nerdling   |  last reply


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!

Topic by xl97 



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 :((

Topic by Bam Boy   |  last reply


Using arduino for Serial in/PWM control

Hello I am wondering if there is someone who can help out a super beginner.  I need to write a code that will allow me to type send a serial message to the micro (im using an arduino uno) to be able to set PWM port to a certain percentage thus changing the fade of an led. I would also like the program to echo back to me a text string indicating what has been done. Is there anyone who can help?

Topic by JonH23   |  last reply


TFDU4100 (PC infrared serial connection)?

I have this infrared transceiver module tfdu411 : data-sheet here the recommended circuit is here well, this circuit is for motherboard with built-in IRDA port , and sure mine does not have one so , can i built this connect this circuit and connect it directly to the serial 9 pins port ? if not , is there any way to connect this module the the PC and build an infrared transceiver ? thank in advance

Question by lu2a 


small serial high resolution display?

Is there a 720p or 1080p display that is about  .75" -1.5" diagonally, this would be used for an Arduino project so if it has pins rather than a type of ribbon cable connector that would be helpful.

Question by CalebO2   |  last reply


Question about linux and serial port? Answered

The instructable https://www.instructables.com/id/Control-real-world-devices-with-your-PC/ all the code is done in VB.net and im using linux nw and i need someway to set this up in linux i don't mind if it is flash for not i just need it to work

Question by wee_man   |  last reply


Analog and Digital inputs over serial?

Good day, question i am building a controller for my robot and i need to send the inputs(analog/digital) by xbee to my robot. now i am not good with programming i get stuck with the first line.... i want to know how i can program it to send it values over serial from xbee tot xbee on robot i didn't get anything work so far, maybe you guys cant help me with a start? Inputs -> arduino -> serial -> Xbee -> Xbee(receiver) -> arduino -> outputs(servo, lights, motors, steppenmotors) the inputs on the controller are 8 switches(digital) and 6 analoge joysticks! Prototype robot is pictured on the picture it had for now a arduino relay shield to control the motors but it will be change to a motor controller(I don't have one yet) any type is possible!

Question by mvan h1   |  last reply


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). 

Question by JoeW79   |  last reply


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.

Question by -max-   |  last reply


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?

Question by nolte919   |  last reply


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!

Question by seanroberts   |  last reply


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); }

Question by Daniel Deacon   |  last reply


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.

Question by IsaacPierce   |  last reply


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);       }                 }   } }

Topic by willi1131   |  last reply