- 41
- 0
- 约6.23千字
- 约 6页
- 2017-08-06 发布于浙江
- 举报
How to use all the GPIO on Beaglebone Black in (如何使用所有的Beaglebone黑色)
How to use all the GPIO on
Beaglebone Black in Python
GPIO include I/O, PWM, ADC, I2C, SPI, and UART
Meng Cao
8 November 2013
Summary
Bealgebone Black original using BoneScript, which is similar to Java. Usually we use C
for hardware programming. Python is a programming language which does much
better on programming and debugging than C. So, this application note will teach
about how to write programs using python. Also, the program would be able to control
all the hardware through GPIO, PWM, ADC.
Introduction
When doing complex project, people usually thing about get a microcontroller to
do all the controls and calculations. However microcontroller needs to involved PCB
design, also need protection circuit designed. Raspberry Pi is an option which has the
microcontroller on the board with other basic devices such as USB, Ethernet, and video
output. Texas Instrument has a similar product called Beaglebone. The newest version
of Beaglebone is Beaglebone Black. Compare to Raspberry Pi, the Beaglebone Black
has more GPIO pins, build in HDMI, also much more powerful processor. Both product
can run Linux as the on board operation system, which means, you can running almost
any language you want. This application not going to talk about using python as the
program language.
Things we need
1. Beaglebone Black
2. Python and libraries
3. Using libraries for GPIO,PWM,ADC
4. Setup SPI drivers on Beaglebone Black
5. Using library for SPI
Setup Beaglebone Black
The first step is setup the Beaglebone Black if you have one in your hand.
Beaglebone Black communicate with computers using USB cable. It need drivers to be
installed on the computer. The reason using driver is because the driver setup an IP
address for Beaglebone Black even though it only connected through USB. In that way
you can SSH to Beaglebone just like connect to a Linux server using SSH.
1 Connect Beag
您可能关注的文档
- High Speed @ Power Gears Renk(高速齿轮 Renk @力量).pdf
- High Speed Layout Guidelines TI(高速布局指南 TI).pdf
- HIGH STRENGTH AND ULTRA HIGH STRENGTH (高强度和超高强度).pdf
- High Temperature Corrosion and Protection of (高温腐蚀和保护).pdf
- HIGH TENACITY YARNS HIGH LINEAR DENSITY, (高韧性纱线线密度高,).pdf
- High Speed Stamping Dayton Lamina(高速冲压代顿板).pdf
- High Productivity Vertical Machining Center(高生产力的立式加工中心).pdf
- High Tunnel Melon and Watermelon Production(高隧道甜瓜和西瓜生产).pdf
- High Speed Solder Ball Shear and Pull Tests vs. (高速焊球剪力和拉力测试vs。).pdf
- High Viscosity Mixer Designs and Applications(高粘度混合机的设计和应用).pdf
- 中国国家标准 GB/Z 37551.300-2026海洋能 波浪能、潮流能及其他水流能转换装置 第300部分:河流能转换装置发电性能评估.pdf
- GB/T 44937.3-2025集成电路 电磁发射测量 第3部分:辐射发射测量 表面扫描法.pdf
- 中国国家标准 GB/T 44937.3-2025集成电路 电磁发射测量 第3部分:辐射发射测量 表面扫描法.pdf
- 《GB/T 44937.3-2025集成电路 电磁发射测量 第3部分:辐射发射测量 表面扫描法》.pdf
- 中国国家标准 GB/T 44937.1-2025集成电路 电磁发射测量 第1部分:通用条件和定义.pdf
- GB/T 44937.1-2025集成电路 电磁发射测量 第1部分:通用条件和定义.pdf
- 《GB/T 44937.1-2025集成电路 电磁发射测量 第1部分:通用条件和定义》.pdf
- 中国国家标准 GB/T 4937.37-2025半导体器件 机械和气候试验方法 第37部分:采用加速度计的板级跌落试验方法.pdf
- 《GB/T 4937.10-2025半导体器件 机械和气候试验方法 第10部分:机械冲击 器件和组件》.pdf
- 中国国家标准 GB/T 44937.2-2025集成电路 电磁发射测量 第2部分:辐射发射测量TEM小室和宽带TEM小室法.pdf
原创力文档

文档评论(0)