随笔分类 -  树莓派

Raspberry Pi
摘要:按下按钮产生中断,在中断处理程序中打开或关闭LED灯。 原理图 接线方式如下图,GPIO25通过10K上拉电阻接3.3V,按下按钮开关后GPIO为0V,用10uF电容消除抖动。GPIO8接LED。 程序 阅读全文
posted @ 2015-02-09 12:32 brep 阅读(7219) 评论(1) 推荐(0)
摘要:/dev/mem是物理内存的全映像,可以用来访问物理内存,一般用法是open("/dev/mem",O_RDWR|O_SYNC),然后mmap,接着就可以用mmap的地址来访问物理内存,这实际上就是实现用户空间驱动的一种方法。pispi.h: 1 #ifndef PI_SPI_H 2 #define... 阅读全文
posted @ 2015-02-03 17:36 brep 阅读(5321) 评论(0) 推荐(0)
摘要:逻辑电平转换树莓派的逻辑电平为3.3v,Arduino为5v,需要进行逻辑转换,在某宝买了个逻辑转换器:HV接5V电源LV接3.3V电源GND接电源负极,两个电源公地RXI输入5v TTL,将在RXO输出3.3v TTLTXI输入输出3.3V TTL ,TXO输入输出5V TTL, TXI与TXO双... 阅读全文
posted @ 2015-02-02 14:37 brep 阅读(4927) 评论(0) 推荐(0)
摘要:编译kernel+xenomai,主要参考https://code.google.com/p/picnc项目中的wiki页面。编译machinekit,主要参考http://www.machinekit.io/docs/building-from-source/ 。解决编译依赖要费些周折,需要再添加... 阅读全文
posted @ 2015-01-21 19:18 brep 阅读(3268) 评论(1) 推荐(0)
摘要:1,http://www.gammon.com.au/spi这篇很详细地讲解了Arduino的SPI通信。2,http://www.brianhensley.net/2012/07/getting-spi-working-on-raspberry-pi.html这篇是讲Raspberry Pi的SP... 阅读全文
posted @ 2015-01-21 18:42 brep 阅读(262) 评论(0) 推荐(0)
摘要:sudo apt-get install linux-image-rpi-rpfv linux-headers-rpi-rpfv编辑/boot/config.txt,在末尾加入以下内容:# set parameters for raspbian debian style bootkernel=vml... 阅读全文
posted @ 2015-01-04 19:01 brep 阅读(371) 评论(0) 推荐(0)
摘要:brep@Mini:~/Downloads/RaspberryPiSoftware$ df -hFilesystem Size Used Avail Capacity iused ifree %iused Mounted on/dev/disk0s2 465Gi 27... 阅读全文
posted @ 2015-01-04 17:55 brep 阅读(388) 评论(0) 推荐(0)
摘要:大体上了解了一下树莓派的启动过程,这篇文章写得比较详细:How the Raspberry Pi bootsupThis is an in-detail account of the Raspberry Pi boot process collected from various sources, mainly from the official forums. First, you need to know the RPi does not boot up like a conventional desktop computer. The VideoCore a.k.a the Graphi 阅读全文
posted @ 2014-02-12 09:27 brep 阅读(2699) 评论(0) 推荐(0)