Nano+Mcp3201
Using Flowcode 11 to test the adc ic with Nano. This project is created in Flowcode version 11. Flowcode is an advanced visual programming platform using the graphical programming. Arduino Nano is a free component. Note, this is not a tutorial. No code or datasheet review included. This is just a simple guide. An external analog-to-digital converter (ADC) occasionally needed. The MCP3201 is a 12-bit Analog-to-Digital Converter (ADC) from Microchip Technology, using the S P I compatible 3-wire interface. It is designed for applications requiring high-resolution data acquisition in a small, 8-pin package. MCP3201 data format is not easy to work with. It should be changed before we output it to Nano. Creating integer from LSB and MSB involve the bitwise operation and masking. On left side MCP3201 has 8 bits, but only 5 have the data. On right side the MCP3201 has 8 bits as well, but only 7 have the data. The integer has 16 bits. MSB on left and LSB on right. Inserting the MSB first with null bit removed. Shift the inserted msb 7 steps left. We have to shift right the inserted LSB only once Now Arduino Nano can work with the masked and shifted data. As you see the adc_out integer has the data to work with. Note. I used two separated power supplies. One to supply plus five volts to adc chip and to nano board. The second - to supply zero to five volts to the input pin of MCP3201 Testing the Nano with adc chip The digitised voltage is not exact, but close enough. Please have a look. The adc chip does not work with voltage above the reference voltage When the input to adc chip is below one volt, the results can not be precise. Thank you for watching.
Download
0 formatsNo download links available.