How to use all the GPIO on Beaglebone Black in (如何使用所有的Beaglebone黑色).pdfVIP

  • 41
  • 0
  • 约6.23千字
  • 约 6页
  • 2017-08-06 发布于浙江
  • 举报

How to use all the GPIO on Beaglebone Black in (如何使用所有的Beaglebone黑色).pdf

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

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档