Adafruit MCP3008 ADC መቆጣጠሪያ

LK-Baseboard ለ Raspberry Pi B+/Pi 2
ውድ ደንበኛ፣
thank you for your purchase of our product. In the next few pages we’ve described, what you’ll need to know for operating our product:
ምርት አልቋልview

መጫን
የአናሎግ ግብዓቶችን በMCP3008 ይቆጣጠሩ 1. የሚፈለጉትን ሞጁሎች መጫን
We recommend to use an actual Raspbian OS-Image (Debian Wheezy). In our first step we’ve to activate the SPI-Interface of the Raspberry Pi, to make the communication with the ADC of the LK- Base board possible. For this, we’re starting with the following command:
There will appear a new window, where we choose „Advanced Options“
Then we go on „A6 SPI“
The next two windows have to be accepted with “Yes” and “OK“
እንዲሁም ቀጣዮቹ ሁለት…
Finally we go on “Finish“ to close the Configuration Tool…
…and reboot the Raspberry Pi with the following command: 
After the Reboot, we’ve to load and install the needed Drivers and Modules. For this you have to put the following commands in the console of the Raspberry Pi and confirm each with a Press on [Enter]. In this procedure the Raspberry Pi have to be connected to the Internet:

እንዲሁም ከዚህ በኋላ እንደገና ማስጀመር አለብዎት:

Python-Example MCP3008 ADC መቆጣጠሪያ ለመጠቀም – testadc.py

የ file „testadc.py“ shows a way to measure analogue voltage Level with a Python script; with the function readadc() and a specified Channel (0-7), you can read out the actual value. Create a file with the name „testadc.py“ and copy the script shown above in this file (please make sure that you don’t miss any spaces). The script can now be used in two different ways:
Output the values of all ADC channels simultaneously:![]()
ይህ ትእዛዝ የሁሉም ADC-ቻነሎች እሴቶች በየ1.5 ሰዎቹ እንዲነበቡ እና እንዲታዩ ያደርጋል።
Output of values from specific Channels:![]()
You can also read out the values from individual channels – specify them with their channel number directly after the command, separated with a spacer. In this example, this would be the channels [3] and [7]
የሚጠየቁ ጥያቄዎች
- How do I control analogue inputs through the MCP3008?
- To control analogue inputs through the MCP3008, follow the provided Python example in the user manual by creating and running the “testadc.py” script.
- በአሽከርካሪ ጭነት ላይ ችግሮች ካጋጠሙኝ ምን ማድረግ አለብኝ?
- If you face problems during driver installation, ensure that your Raspberry Pi is connected to the internet and retry running the installation commands.
ሰነዶች / መርጃዎች
![]() |
Adafruit MCP3008 ADC መቆጣጠሪያ [pdf] የተጠቃሚ መመሪያ MCP3008 ADC መቆጣጠሪያ፣ MCP3008፣ ADC መቆጣጠሪያ፣ ተቆጣጣሪ |

