树莓派使用VGA显示器输出

时间:2024-03-29 12:12:36


想用淘汰的便宜显示器作为树莓派的输出, 第一种方法是买一条HDMI线转VGA(注意要能外接供电的否则容易烧),但这种线比较贵

另一种方案是用VGA模块(DAC加权电阻)方案,缺点是占用较多的GPIO


模块地址:

https://gziot.taobao.com/search.htm?search=y&keyword=vga&lowPrice=&highPrice=


树莓派使用VGA显示器输出



使用方法:




按照图方式接入树莓派的GPIO引脚,注意方向及插接时的力度。


将烧录了最新系统(目前该教程只支持Raspbian系统)的TF卡插入电脑,通过编辑器打开TF卡/boot分区中的config.txt文件,然后将配置改成如下内容:
 
framebuffer_width=800
framebuffer_height=600
dpi_group=2
device_tree=bcm2710-rpi-3-b.dtb
dpi_mode=86
dtparam=i2c_arm=off
dtparam=spi=off
dtparam=uart0=off
dtparam=uart1=off
dtoverlay=pi3-disable-bt-overlay
dtoverlay=vga666
enable_dpi_lcd=1
display_default_lcd=1
force_pwm_open=0
dtparam=audio=on
start_x=1
gpu_mem=128
 


然后保存退出,将TF卡插入树莓派,通过使用VGA线缆连接显示器及VGA模块的VGA接口,然后启动树莓派,就可以看到图形了。