Asked
— Edited

I have a device that is sending information in on a serial port. I want to evaluate the incoming string then if it = a specific value to set a system variable. Something like this:
If the serial input = "MOTION" then system variable Motion = "1"
Thanks.
Welp that would explain why I cant find it. BUMMER. I have a large Arduino based program. Ok I have several to tell the truth. I have a full scale R2-D2 that is Arduino based. The Arduino's pas information back and forth via Serial ports. I was thinking I could add the EZ-B4 to the existing "systems" without complete rewiring of my droid. I thought ID do a test or proof of concept first. So I set up an Arduino UNO with a PRI sensor. The Arduino sends motion and time between motion detected out on the USB / Serial. I got the Serial Terminal in ARC to display the info that the Arduino is sending. I just wanted to look at each line and look to see if it matched a code then set a system variable accordingly. The current Arduino system sees a condition having been met ( say The command for turning on the view screen has been received) and sends out a code like 8999 from the main Arduino in the body to the Arduino in the head. When the main Arduino in the head sees the code 8999 come over the serial it then turns on the view screen.
In short I was hoping to more easily integrate the EZ-B4 into my existing systems. I have many systems that R2 can do many things by him self. He will look in the direction where he sees motion, talk when hearse you talk. But I can see how the EZ-B4 could really improve his ability's. A total re wire... well ummm..... The below picture may put this into perspective.
Richard R. and Thetechguru and JustinRatliff Thanks for your help.
Wow! that's a whole fricken' computer back there in your R2... Serious electronics skills, dude...
Here's a picture of my current project's guts.... My 75% finished inMoov....
You could continue to use the Arduino as an intermediary. Instead of connecting the serial port to the computer, you connect it to one of the UARTs on the EZ-B and then use the UART script commands to receive (and if needed send) the data.
Take a look at this thread where Luis interfaces to an Arduino to drive an LCD display. Sending instead of receiving data, but concepts are similar and would certainly work (if you look at his other posts, I think he has done some 2-way integration with another device too).
https://synthiam.com/Community/Questions/6577
Here is a thread where Luis hooked up several ping sensors and a compass to an Arduino and is reading the data into the V4 using the UART port.
https://synthiam.com/Community/Questions/6491
Alan
thetechguru ,
Thanks I'll look into that. Sounds like the way to go.
Richard R,
Nice robot. I love those hands, did you make them?
@Slee The Sloth... It's the inMoov project.... you download (litterly hundreds and hundreds of parts) the STL files and print them on a 3d printer.... When it's all said and done it will probably over 600hours of printing...
you can have a look here inMoov project if you're interested...
Richard, Would you consider a new thread for Inmoov and document a little of what you have done. I've just started and want to ask you questions but don't want to hijack this thread. Did you put arduinos in the arms? I see the EzB in the back. I'm amazed at how quickly you have built this.
@Checksumff No worries happy to answer some questions for you... There are also a couple of other guys on here who have built inMoovs and can help as well... So start another thread for yourself and ask a way... Quickly to answer your question, though... I am not using any arduinos in my inmoov... Just one EZB4 and a lynxmotion SSC-32 serial servo controller (for the hands and wrists... everything else is driven directly from the ezb4....
Cheers