ascii serial COM comunication for arduino and I2C

Post your working scripts, libraries and tools
User avatar
bettj
Posts: 1
Joined: 03 Apr 2016, 07:21

ascii serial COM comunication for arduino and I2C

03 Apr 2016, 08:03

This is a script I put together so that I could use AHK to talk to my Arduino Uno over coms, to run an I2C LCD. There is already a project out there for comunicating over coms, but it only worked for a preset value in HEX. I updated it with a ascii to hex converter and added all the necessary bits to make it work over COMs. links to resources below. I will post the Arduino Code here as well if you need it. It will be the 2nd one. It is based off of a example linked below.

It took me forever to get this to work but I have combined a few existing projects to get this to work properly. I understand that It could use a lot of cleanup work, but It work for now. If you have any suggestions pls leave them below.

**Added new arduino code on the bottom to keep words on same line. If you have any issues pls post. (NOTE: Cuts off words that are bigger than 16 characters long)

---------------------------| AHK Code |--------------------------

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



---------------------------| Arduino Code |--------------------------

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



**edit: Apr/3/2016
Fixed arduino code for 16x2 text scrolling.


---------------------------| Arduino Code (Word Detection) |--------------------------

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



-----Serial-com-----
https://autohotkey.com/board/topic/2623 ... ipt/page-2
----Hex Converter----
https://autohotkey.com/board/topic/2929 ... ntry187995
----Arduino Serial COM to I2c LCD----
https://bitbucket.org/celem/sainsmart-i ... cdtest.ino
Last edited by bettj on 09 Apr 2016, 01:09, edited 1 time in total.
Peterm
Posts: 1
Joined: 02 Jan 2015, 12:10

Re: ascii serial COM comunication for arduino and I2C

05 Apr 2016, 14:10

Interesting. As a new starter with Arduino and LCD, I can see why it took you an age.
New user

Re: ascii serial COM comunication for arduino and I2C

11 Feb 2018, 09:23

Hi bettj

Could you please share .dll file . I can find it on web :headwall: :(

Return to “Scripts and Functions”

Who is online

Users browsing this forum: Ved and 16 guests