Reading serial values from Arduino Microcontroller over USB

4 posts / 0 new
Last post
fastbit66
fastbit66's picture
Offline
Last seen: 11 years 4 months ago
Joined: 2012-09-23 23:11
Reading serial values from Arduino Microcontroller over USB

Hello dear Amiga Coders!

I really like the Arduino Microcontroller and own an Arduino UNO Board.
As a first little project I read temperature values with TMP36 sensors.
The Arduino sends these values over serial USB connection to PC.

Under Linux this is rellay easy cause there's a driver to emulate USB as a normal serial
port device.

I really like to write a GUI on my SAM440 so that I can display the values an AMIGA too :-)

Now my question is: Can someone of you help me getting started how to implement this over USB on Amiga OS 4.1 U 5 on a SAM440ep?
Or can I use the serial device instead of USB. And if so how?

I would really appreciate any tips from you!

Best regards and lots of fun with AMIGA !!!

hypex
hypex's picture
Offline
Last seen: 1 month 2 weeks ago
Joined: 2011-09-09 16:20
Hi fastbit66. Seems no one

Hi fastbit66.

Seems no one has programmed USB. :-)

How much digging have you done so far?

First I'd locate the source to the Linux driver to see how complicated it is to write a USB serial driver. It seems silly to need to write a serial driver for a serial bus but it is a complcated protocol with devices hanging off a device tree. :-)

Then, in the SDK there are APIs you can read up on for USB that implement devices for access. On os4depot.net search for USB and you will find a USB guide to writing drives as well as some drivers with source codes. Perhaps not exactly what you are writing for but a good starting point.

Finally in the SDK you will find example code for USB drivers. I Think the end result would be something along the lines of a usbserial.device.

Good luck! :-D

fastbit66
fastbit66's picture
Offline
Last seen: 11 years 4 months ago
Joined: 2012-09-23 23:11
@hypex: Hey !! :-) Thanx a

@hypex:

Hey !! :-) Thanx a lot for your reply !
I by myself was a bit surprised that it seems nobody could give a hint.
So thanx again :-))

Yepp - I think tht's the way I will go.
Uhh that will be interesting - I never wrote a driver before ;-)

Hope I can achieve the goal...

Best regards
andi

SAM440ep@ 667MHz / 512 MB RAM / Radeon 9050 / AmigaOS 4.1 Update 5

hypex
hypex's picture
Offline
Last seen: 1 month 2 weeks ago
Joined: 2011-09-09 16:20
@fastbit66 No problem. I

@fastbit66

No problem. I just looked into your problem for a short while to see what came up. :-)

So how is it going. Any futher? Still doing research?

Log in or register to post comments