Useful links for the USB-IO Board

Post Reply
User avatar
odroid
Site Admin
Posts: 29380
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Useful links for the USB-IO Board

Unread post by odroid » Mon Apr 21, 2014 6:29 pm

Resources

WiKi
http://odroid.com/dokuwiki/doku.php?id=en:usbioboard

Access USB-IO-Board in C
http://forum.odroid.com/viewtopic.php?f=63&t=2755

Refer this old forum backup to know how-to access the USB-IO board with Python.
http://com.odroid.com/sigong/prev_forum ... ython.html

pmousoul
Posts: 18
Joined: Wed Jun 04, 2014 9:34 pm
languages_spoken: english
ODROIDs: U3
Contact:

Re: Useful links for the USB-IO Board

Unread post by pmousoul » Thu Jun 05, 2014 9:38 pm

Hello,

I'm a new odroid user. I have the following questions:

1. I would like to ask how can I write C code for controlling from the odroid u3 the leds/switches and the pwm of the usbio board?
2. What are the functions I can use in C to accomplish that?
3. What C code I must use to have access to the registers of the usbio board in order to make it work as I would like?
For example I would like to control 4 leds, 4 switches and the pwm of the usbio board.
4. Do I have to change the usbio board firmware? Or it is possible to accomplish what I want just using the firmware provided?

It would be nice if there was a tutorial that would describe with examples how to get working in C the leds, switches, pwm, adc.. etc. of the usbio board.

Is there such a tutorial?

Thanks in advance! :)

User avatar
odroid
Site Admin
Posts: 29380
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: Useful links for the USB-IO Board

Unread post by odroid » Thu Jun 05, 2014 11:25 pm

There is no well documented tutorial.

If you follow below steps, you can write your code in C.

A. Read the MCU PIC18F45K50 data sheet very carefully.
http://www.microchip.com/wwwproducts/De ... IC18F45K50
You need to understand the peripheral devices and registers in the MCU.
The GPIO input/output and PWM parts are important for your application.

B. If you understand the basic architecture of PIC18F45K50, investigate the header style library(usb-io.h) in this link.
http://forum.odroid.com/viewtopic.php?f ... 755#p23253
Just include that file in your code and call the library functions as much as you can.


If you bought the USB IO board after Feb-2014, it should have the latest firmware.

pmousoul
Posts: 18
Joined: Wed Jun 04, 2014 9:34 pm
languages_spoken: english
ODROIDs: U3
Contact:

Re: Useful links for the USB-IO Board

Unread post by pmousoul » Fri Jun 06, 2014 7:40 pm

Thank you very much for the guidelines! :)

kiwi_stu
Posts: 4
Joined: Thu Jul 10, 2014 10:30 pm
languages_spoken: english
Contact:

Re: Useful links for the USB-IO Board

Unread post by kiwi_stu » Thu Jul 24, 2014 5:20 am

Thank you, very useful information.

vahids1639
Posts: 7
Joined: Wed Feb 25, 2015 4:34 am
languages_spoken: english
ODROIDs: ODROID XU3
Contact:

Re: Useful links for the USB-IO Board

Unread post by vahids1639 » Wed Feb 25, 2015 4:39 am

Hello,

I am going to buy a ODROID XU3 board and currently I am investigating it a,d its peripheral boards.

I am quiet new in ODROID and sorry if I ask stupid question.

I want to know when we connect the USB-IO Board to ODROID XU3-lite, we should connect a separate power supply to it as well, or no? (usb connection provide the power suply for USB-IO board too?)

User avatar
odroid
Site Admin
Posts: 29380
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: Useful links for the USB-IO Board

Unread post by odroid » Wed Feb 25, 2015 12:15 pm

No, the IO board drains the power from the USB port.

vahids1639
Posts: 7
Joined: Wed Feb 25, 2015 4:34 am
languages_spoken: english
ODROIDs: ODROID XU3
Contact:

Re: Useful links for the USB-IO Board

Unread post by vahids1639 » Wed Feb 25, 2015 7:12 pm

Many thanks for your quick reply. Sorry another stupid question. Is it possible to use the ODROID XU3-lite board for generating PWM? Is there any special PWM output on the board? If yes how many are they? Thanks

User avatar
odroid
Site Admin
Posts: 29380
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: Useful links for the USB-IO Board

Unread post by odroid » Thu Feb 26, 2015 2:01 pm

There is no PWM on the XU3.
Get one of these and do PWM thru I2C: http://www.adafruit.com/product/815
You might need a I2C level shifter since the XU3 GPIO is 1.8Volt.
Open a new thread if you need further discussion.
This thread is not for Q&A.

catan
Posts: 18
Joined: Thu Mar 05, 2015 1:16 am
languages_spoken: Italian
ODROIDs: Odroid C1
Contact:

Re: Useful links for the USB-IO Board

Unread post by catan » Mon Mar 21, 2016 9:12 am

Hi guys,

someone played with the io-board ADC? I need a fast ADC (much more faster than the s805/s905 default adc). From the datasheet i see that the io-board adc is capable of work at 48mhz (means 1 sample every 41ns), did some one try it? There is some C code for use the dac and write the values on a file? Any help will be realy appreciate

User avatar
odroid
Site Admin
Posts: 29380
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: Useful links for the USB-IO Board

Unread post by odroid » Mon Mar 21, 2016 12:08 pm

No. The ADC sampling rate is not related to the CPU clock.
Refer the datasheet on the PIC MCU.
http://www.microchip.com/wwwproducts/en/PIC18F45K50

mtourne
Posts: 3
Joined: Sat Sep 21, 2013 11:37 am
languages_spoken: english
Contact:

Re: Useful links for the USB-IO Board

Unread post by mtourne » Tue Jun 21, 2016 9:03 am

I think there is an error in the wiki, below Firmware source code & Hex file downloader for Windows OS, there is a link to the github repo which doesn't have the .exe to flash the board in it.
I found what the link used to be with a compiled .exe, inside some pdf file

Here is where the zip file that contains the actual exe :
http://odroid.com/dokuwiki/lib/exe/fetc ... -10-15.zip

User avatar
odroid
Site Admin
Posts: 29380
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: Useful links for the USB-IO Board

Unread post by odroid » Tue Jun 21, 2016 10:31 am

Thank you for the feedback.
I've added your comment in the WiKi.
http://odroid.com/dokuwiki/doku.php?id= ... windows_os

User avatar
ronaldlees
Posts: 82
Joined: Sat Mar 29, 2014 3:52 am
languages_spoken: english
ODROIDs: Odroid C1
Odroid C1+
Odroid XU4
Contact:

Re: Useful links for the USB-IO Board

Unread post by ronaldlees » Fri Jul 29, 2016 12:46 am

I am fine with using the regular GPIO on the Odroids. I have a network of Odroids running SPI communication boards, which is fine. BUT - I see this device as a cheap way to bring my i386 computers into the Odroid network. Is the software that accompanies this USB GPIO board usable on say ... ubuntu running on a i386/AMD64 ... after recompile of course. Is it driver or userland specific? Anyone tried this?

User avatar
odroid
Site Admin
Posts: 29380
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: Useful links for the USB-IO Board

Unread post by odroid » Fri Jul 29, 2016 11:20 am

The USB IO board works on my x86 Xeon 64bit Ubuntu PC out of the box because it uses a generic USB HID driver.

User avatar
ronaldlees
Posts: 82
Joined: Sat Mar 29, 2014 3:52 am
languages_spoken: english
ODROIDs: Odroid C1
Odroid C1+
Odroid XU4
Contact:

Re: Useful links for the USB-IO Board

Unread post by ronaldlees » Sat Jul 30, 2016 10:43 pm

Thanks!

If this works, it'll be a lot cheaper than most USB/IO boards I've seen for x86 platform.

Post Reply

Return to “USB IO”

Who is online

Users browsing this forum: No registered users and 1 guest