SUMMER SALE • UP TO 20% OFF • Ends 31st AUGUST 2025 *excludes trade customers
Support Forum

Share your projects and post your questions

The Forum

Is the MCP3202 clock frequency set right?

The ADC-DAC Pi Zero is a 2 Channel ADC and 2 Channel DAC for the Raspberry Pi

18/05/2016

Posted by:
jpsa

jpsa Avatar

I could easily be confused here (I'm not an expert at reading datasheets, nor at using the spidev package!), but both the Python 2 and 3 libraries include the linespiADC.max_speed_hz = (4000000)(4 MHz). However the datasheet for the MCP3202 gives maximum clock speeds of 0.9 MHz at V_DD=2.7V, and 1.8 MHz at V_DD=5.0V.Certainly I'm getting much better results from the ADC side of the ADC DAC Pi if I reduce this max speed setting.

18/05/2016

Posted by:
andrew

andrew Avatar

Thank you for spotting the mistake with the python libraries. You are correct the ADC clock speed should have been 0.9MHz.I have updated the python 2 and python 3 libraries with the correct clock rate.

19/05/2016

Posted by:
jpsa

jpsa Avatar

Thank you!

Forum Notice – Closure to New Posts

As part of our compliance with the UK’s Online Safety Act, the AB Electronics UK support forum is now closed to new posts and replies.

We understand the importance of continued support for our products, so if you have a technical query or require assistance, please use the Contact Form or consult our Knowledge Base for helpful articles and documentation.

We appreciate your understanding and continued support.


Note: documents in Portable Document Format (PDF) require Adobe Acrobat Reader 5.0 or higher to view.
Download Adobe Acrobat Reader or other PDF reading software for your computer or mobile device.

Home

Shop

Learn

Forum

FAQ

Contact

0 item

Your cart is empty

Please browse our shop to order from the wide range of Raspberry Pi boards and accessories.

Subtotal:£0.00
View Basket Continue to Checkout