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.
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
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 device
Device dev = DeviceFactory.getDevice();
dev.open();
// create and initialize the display
Display disp = new Display(dev);
disp.init(true, true, true);
// write a string to the display
disp.write("Hello World");
// close the USB device
dev.close();
More information can be found in the
javadoc.
相关推荐
jfreechart-1.0.14-experimental.jar
jfreechart-1.0.9-experimental 用于java后台绘制图形的jar包,如折线图 饼图 柱形图
在Android Studio中,通常我们会使用Gradle构建系统来管理项目,而`gradle-experimental`插件则是专门为NDK开发设计的,它提供了更方便的方式来集成原生代码到Android应用中。 在Android Studio中使用`gradle-...
而“gradle-experimental”是Gradle的一个实验性插件,它提供了对原生代码(如C++)的支持。这个插件允许开发者在Android Studio项目中直接管理和构建原生库,使得Java与C++的集成变得更加方便。 描述中提到的相关...
### 实验设计与分析知识点概览 #### 一、实验设计与分析课程介绍 - **课程定位**: 本书《实验设计与分析》是Howard J. Seltman为卡内基梅隆大学人文与社会科学学院开设的第二阶段统计学课程而编写的教材。...
《实验算法学指南》(A Guide to Experimental Algorithmics)由Catherine C. McGeoch撰写,并于2012年由剑桥大学出版社出版。该书为读者提供了一个全面而深入的视角,旨在指导如何通过计算实验来补充理论分析的结果...
Uncertainty Analysis of Experimental Data with R 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
《实验设计与分析》是统计学领域一门重要的课程,它主要关注如何有效地规划、执行和解释实验结果。在科学研究、工程实践以及各种决策过程中,实验设计与分析扮演着至关重要的角色。这组讲座笔记深入浅出地介绍了相关...
Experimental study of needle-tissue interaction forces: effect of needle geometries, insertion methods and tissue characteristics. it used to study the needle insertion force and the influence of ...
实验模态分析(Experimental Modal Analysis)是一种对结构在自由振动状态下的动态特性进行识别和描述的过程。在介绍实验模态分析的基础知识之前,首先要理解什么是模态分析。模态分析是研究系统动态特性的技术,它...
The goal of this paper is to provide an experimental comparison of the efficiency of min-cut/max flow algorithms for applications in vision. We compare the running times of several standard ...
《实验设计与数据分析》这本书由Gerry Quinn与Michael Keough两位生物学家共同撰写,旨在为生物学领域的学生和研究者提供一套全面的实验设计与数据处理方法。本书内容丰富,不仅覆盖了基本的统计原理,还深入探讨了...
GXRS10-13C-experimental-twm-2018-12-22.exe
本文档《Comprehensive Experimental Analyses of Automotive Attack Surfaces.pdf》详细探讨了现代汽车的电子信息安全性问题,特别是针对汽车内部网络的安全威胁进行了深入研究。该研究由来自加州大学圣地亚哥分校...
视觉跟踪是计算机视觉领域一个非常活跃的研究方向。在现实场景中进行对象跟踪是一项复杂的任务,因为许多不同的和变化的环境因素必须在一个算法中协调。例如,一个跟踪器可能在处理光照变化方面表现良好,但在应对因...
许多现代汽车都配备了OBD-II(On-Board Diagnostic)接口,用于车辆维护和故障检测。然而,未经适当保护的OBD-II接口可能成为黑客的攻击入口,他们可以通过这个接口植入恶意软件或执行未经授权的操作。 此外,报告...
Experimental Modal Analysis.rdp
Experimental_10.sdf