We're no longer updating This wiki!!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:usbioboard [2015/10/14 17:48]
john1117 [Example host software source code for Ubuntu]
en:usbioboard [2017/05/20 10:37] (current)
odroid [Introduction]
Line 9: Line 9:
 It has a bootloader that allows for downloading or upgrading the firmware. It has a bootloader that allows for downloading or upgrading the firmware.
  
-You can find the data sheet for the PIC18F45K50 microcontroller [[http://​www.microchip.com/​wwwproducts/​Devices.aspx?​dDocName=en558861 | here]]:+You can find the datasheet ​for the PIC18F45K50 microcontroller [[http://​www.microchip.com/​wwwproducts/​Devices.aspx?​dDocName=en558861 | here]]:
 ---- ----
 ===== Hardware ===== ===== Hardware =====
Line 32: Line 32:
 You have to install the cross compiler before IDE installation You have to install the cross compiler before IDE installation
 ==== Cross Compiler ==== ==== Cross Compiler ====
-MPLAB C18 v3.43 or higher \\ +MPLAB C18 v3.43 or higher ​From Microchip homepage\\  
-(From Microchip homepage : http://​www.microchip.com/​stellent/idcplg?IdcService=SS_GET_PAGE&​nodeId=1406&​dDocName=en010014&​redirects=c18)\\+http://​www.microchip.com/​Developmenttools/ProductDetails.aspx?PartNO=SW006011 ​\\
  
 We've also tested C18 v3.47 Standard-Eval Version. It works well.\\ We've also tested C18 v3.47 Standard-Eval Version. It works well.\\
Line 46: Line 46:
 http://​www.microchip.com/​mplabx-ide-windows-installer http://​www.microchip.com/​mplabx-ide-windows-installer
  
 +==== Writing bootloader with PICKit 3 ==== 
 +[[en:​picwriting|Writing bootloader with PICkit 3]]
 ====  Header & breadboard connection ==== ====  Header & breadboard connection ====
 To attach it to a breadboard, you must solder two 14-pin headers onto the IO board.\\ To attach it to a breadboard, you must solder two 14-pin headers onto the IO board.\\
Line 59: Line 60:
  
 ====  Firmware source code & Hex file downloader for Windows OS ==== ====  Firmware source code & Hex file downloader for Windows OS ====
-{{:en:Microchip_Solutions_v2012-10-15.zip}}+ 
 +[https://​github.com/​hardkernel/​Odroid-USBIO ] 
 + 
 +Prebuilt Hex file 
 + {{ :en:fw.zip}}
  
 To enter into firmware update mode, press the switch on the board and plug the USB cable. ​ To enter into firmware update mode, press the switch on the board and plug the USB cable. ​
Line 65: Line 70:
 The update utility is "​HIDBootloader (Windows).exe"​ which can be found in "/​USB/​Device - Bootloaders/​HID/"​. The update utility is "​HIDBootloader (Windows).exe"​ which can be found in "/​USB/​Device - Bootloaders/​HID/"​.
  
 +The EXE file should be found in this file.
 +{{:​en:​microchip_solutions_v2012-10-15.zip}}
 ====  Hex file downloader for Linux OS ==== ====  Hex file downloader for Linux OS ====
 <​del>​Do not use mphidflash ! It will break the bootloader !</​del>​ <​del>​Do not use mphidflash ! It will break the bootloader !</​del>​
Line 74: Line 81:
 **Update!** :-) **Update!** :-)
  
-The latest mphidflash version 1.6 works well with Linux host PC.+The latest mphidflash version 1.6 works well on a Linux host PC.
  
 http://​code.google.com/​p/​mphidflash/​ http://​code.google.com/​p/​mphidflash/​
Line 88: Line 95:
 Resetting device... Resetting device...
  </​code> ​  </​code> ​
-====  Example firmware source code for PIC18F45K50 ==== 
-For the latest firmware and host python code, please visit 
- ​[https://​github.com/​hardkernel/​Odroid-USBIO ] 
- 
-Prebuilt Hex file 
- {{ :​en:​fw.zip}} 
- 
  
 ====  Example host software source code for Android ==== ====  Example host software source code for Android ====
Line 108: Line 108:
  
  
-To test this app you need to connect a potentiometer (variable resistor) to the RA0 pin as in this picture.+To test this app you need to connect a potentiometer (variable resistor) to the RA1 pin as in this picture.
  
 {{:​en:​s_20121226_191545.jpg?​560}} {{:​en:​s_20121226_191545.jpg?​560}}
Line 123: Line 123:
  
 ==== Example host software source code for Ubuntu ==== ==== Example host software source code for Ubuntu ====
-Install libusb+Install libusb.
   sudo apt-get install libusb-1.0-0-dev   sudo apt-get install libusb-1.0-0-dev
  
-Install python usb library+Install python usb library.
 <​code>​ <​code>​
 git clone https://​github.com/​walac/​pyusb git clone https://​github.com/​walac/​pyusb
Line 132: Line 132:
 sudo python ./setup.py install sudo python ./setup.py install
 </​code>​ </​code>​
-Go to the usbio folder you unzipped, and then type make command to build. 
  
 +Downloads C and python examples.
 +  git clone https://​github.com/​hardkernel/​Odroid-USBIO
 +  ​
 This host software is just a simple command line, not X window system like QT and KDE. This host software is just a simple command line, not X window system like QT and KDE.
- 
 Connect the IO_board using a micro usb cable to your ubuntu system. Execute the command Connect the IO_board using a micro usb cable to your ubuntu system. Execute the command
-<​code>​ + 
- $ sudo ./usbio +  cd Odroid-USBIO/usbio/linux 
-</code>+Make & Run C source. 
 +  make 
 +  sudo usbio 
 + 
 +Run python file. 
 +  sudo python usb_io_demo.py
  
 For the latest firmware and host python code, please visit For the latest firmware and host python code, please visit
  ​[https://​github.com/​hardkernel/​Odroid-USBIO ]  ​[https://​github.com/​hardkernel/​Odroid-USBIO ]
- 
 ==== Logical data transfer between IO-board and ODROID ==== ==== Logical data transfer between IO-board and ODROID ====
 Logical data transfer between IO-board and ODROID is utilized driver-less USB HID protocol. Logical data transfer between IO-board and ODROID is utilized driver-less USB HID protocol.
en/usbioboard.1444814293.txt.gz · Last modified: 2015/10/14 17:48 by john1117
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0