Showing posts with label Arduino. Show all posts
Showing posts with label Arduino. Show all posts

Thursday, January 22, 2015

String Delimiter Program for Arduino Platform

An arduino sketch for parsing strings is required in general firmware.
Here it is a bsic structure of code is proposed to delimit the string of  bytes by Colon(:).

For, Example

Series of Data comming is in row of "12:123:23:45:8283:9474758:94848:28373:848:3834:89485:384:8484:9494949:9"

Then to retrieve or parse each individual value of data the code is proposed based on inbuilt functions used from arduino library.


Fig 1




Fig 2.

Code has been tested on Arduino Mega2560 Board. Fig 2. shows sample code with output.
If you want to have sketch  please write one mail to me at xtint.technologies@gmail.com.

http://www.xtint.us                                       https://www.facebook.com/Xtintt
xtint.technologies@gmail.com                     https://twitter.com/dhavalpateel
Skype: xtint.technology                                https://plus.google.com/u/0/+DhavalPatelFirmwareProgrammer    
+91-9173-929262                                         in.linkedin.com/in/dhavalnpatel/


Wednesday, September 17, 2014

Raspberry_PI_01_Level_Shifter_Circuit


  • Hardware Connection between Raspberry PI and Arduino Uno level Shifter circuit for Serial Port UART interfacing with each other.

  • TX pin second last from Arduino GPIO is connected with 1.6K ohm resister and resistor is connected with RX pin of raspberry pi at pin number 5, again, this pin 5 is connected with Ground GND using 3.3kOhmResistor as shown.

  •  RX pin from Arduino board is directly connected with TX pin of Raspberry PI,there is no need to do voltage level shifting.