Measuring voltage and adjusting it is what electronics is all about so you won’t get far without friends like the Adafruit PCF8591 Quad 8-bit ADC + 8-bit DAC combo. Analog to Digital Converters help by measuring an analog voltage and turning it into something a microcontroller like a Metro or Arduino can understand. If you’re using a single-board computer like a Raspberry Pi, you might not have any other way to measure a voltage because even though they are well equipped for digital circuits, many boards of that type don’t have any pins that can measure analog voltages./測量電壓並調整電壓是電子學的全部意義所在,因此如果沒有像Adafruit PCF8591四通道8位ADC + 8位DAC組合這樣的朋友,您就不會走得太遠。Nalog至Digital C逆變數通過測量類比電壓並將其轉換為像Metro或Arduino這樣的微控制器可以理解的東西來提供説明。如果您使用的是像Raspberry Pi這樣的單板計算機,則可能沒有其他方法來測量電壓,因為即使它們配備了良好的數位電路,許多這種類型的電路板也沒有任何可以測量類比電壓的引腳。
The PCF8591 is not the highest quality ADC/DAC - with only 8 bits of measurement, but it works well and is fairly inexpensive so for many basic uses it will work just fine./PCF8591不是最高品質的ADC/DAC - 只有8位測量,但它工作良好且相當便宜,因此對於許多基本用途,它可以正常工作。
Adding a PCF8591 to your electronics project will give you not one, not two, but four 8-bit analog inputs that you can use to measure voltages from. If knobs are just the thing to complete your project, just add a PCF8591 and some potentiometers and you’re ready to twist, turn, twiddle and tweak to get things just right./將PCF8591添加到您的電子專案中將為您提供的不是一個,不是兩個,而是四個8位類比輸入,您可以使用它們來測量電壓。如果旋鈕只是為了完成您的專案,只需添加一個PCF8591和一些電位計,您就可以開始扭轉,轉動,旋轉和調整,以使事情恰到好處。
Along with four 8-bit ADC channels, the PCF8591 comes complete with an 8-bit Digital to Analog Converter converter as well! Not only can you measure voltages, but now you can create them just as you want them. You can even use the DAC and ADC together to create an input to a circuit and measure the results with the ADC. The possibilities abound!/ 除了4個8位ADC通道外,PCF8591還配備了一個8位D輸入至Analog C導頻器轉換器!您不僅可以測量電壓,而且現在您可以根據需要創建電壓。您甚至可以同時使用DAC和ADC來創建電路的輸入,並使用ADC測量結果。可能性比比皆是!
Wow!” you say, ”That sounds great, but surely with all that fun in one small package, I can only use one at a time.”/ 哇! "你說,"這聽起來很棒,但可以肯定的是,在一個小包裝中擁有所有這些樂趣,我一次只能使用一個
Well, my friend, I’ve got good news. On the back of each PCF8591 breakout are three jumpers that allow you to set the I2C address, allowing the use of eight PCF8591s on the same I2C bus! That’s up to a whopping 32 channels of analog measurement and 8 channels of analog signal generation! If you do decide to go all out with your project, you won’t break the bank because the PCF8591 breakouts are reasonably priced compared to some higher-end ADCs. / 我的朋友,我有個好消息。每個PCF8591分線的背面有三個跳線,允許您設置I2C位址,允許在同一I2C總線上使用八個PCF8591!這相當於高達32 個通道的模擬測量和8 個通道的模擬信號生成!如果您決定全力以赴完成您的專案,您不會破產,因為與一些高端ADC相比,PCF8591突破的價格合理。
As if 4 ADCs and one DAC in a single package weren’t enough, we’ve made it even easier to use by mounting the PCF8591's chonky SO16 surface mount package onto a breakout with standard 0.1”/2.54mm headers and SparkFun Qwiic compatible STEMMA QT connectors for the I2C bus, making it simple to integrate with your project. QT Cable is not included, but we have a variety in the shop. Using the wiring diagrams and example code on the pages that follow, you’ll be able to use our Python and Arduino libraries to easily measure as many voltages as you need (as long as that number is 32 or less)./ 如果單個封裝中集成 4 個 ADC 和 1 個 DAC 還不夠,我們已將 PCF8591 的 CHONKy SO16 表面貼裝封裝安裝到具有標準 0.1"/2.54mm 針座和用於 I2C 總線的SparkFun Qwiic兼容STEMMA QT連接器的分線器上,使其更易於使用,從而輕鬆與您的專案集成。 QT電纜不包括在內,但我們在商店裡有各種各樣的電纜。使用以下頁面上的接線圖和示例代碼,您將能夠使用我們的Python和Arduino庫輕鬆測量所需的電壓(只要該數位為32或更小)。