USB Experimental Board

來源:互聯網
上載者:User
USB Experimental BoardOverview

This project aims to provide a easy to use USB experimental board for students of the first year. Instead of only using the standard log for their (yet simple) programs, they are able to integrate hardware into their applications, which makes programming more interesting. The project provides a Java API to access the hardware such as display, flash, ADCs, etc. on the target board over USB from the PC. This approach requires a high level of abstraction to make it possible to use a simple but flexible Java API hiding the hardware and communication details.

For advanced students, firmware based on the existing framework can be developed on the microcontroller and downloaded over USB or JTAG.

Hardware

For communication and controlling the hardware a Atmel AT90USB1287 USB microcontroller is used. The following hardware components are accessible on the board:

  • 3x12 Characters I2C/TWI LCD Display

  • Serial Interface (UART)

  • 32 Mbit Serial Flash Memory (SPI)

  • 4+1-Way Joystick

  • Loudspeaker

  • Microphone

  • Light Dependent Resistor (LDR)

  • Thermal Resistor (NTC)

  • 4 LEDs

  • 6 Buttons

 

Software

The communication with the device is based on the Java libusb wrapper.

Each hardware component is represented by a Java class. Prior to using the class, the connection to the USB device must be established. The following code snippet shows how to write a string to the Display using the Display class.

// create and open the USB deviceDevice dev = DeviceFactory.getDevice();dev.open();// create and initialize the displayDisplay disp = new Display(dev);disp.init(true, true, true);// write a string to the displaydisp.write("Hello World");// close the USB devicedev.close();

More information can be found in the javadoc.

 

Test Application

To test your device you can use the test application AVRExpboard TA

 Reference: http://inf.ntb.ch/infoportal/help/index.jsp?topic=/ch.ntb.infoportal/projects.html

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.