Close

Hardware testing example - I2C, RTC & Arduino

A project log for I/O Blocks Toolkit

I/O Blocks Toolkit is a complete, user-friendly framework for electronic prototyping using popular hardware kits

iobtoolkitiobtoolkit 01/21/2016 at 00:100 Comments

Hardware testing is rather obscure topic among #makers crowd. Most projects are born on a bench and stay there or move into a box. If you ever done some serious software engineering, you probably heard about software testing.

How about doing hardware unit test... in Python?

We made a small example where we explore MCP7940N RTC by writing a test for it. Test verifies:

  1. our wiring and I2C communication
  2. RTC response (using programmable Alarm and Arduino DIO port)

This example may look trivial, but it opens few interesting opportunities, like testing maximum bus wire length, temperature range, power supply voltage, etc.

You can find it on our project page: https://iobtoolkit.com/s/hwtest/

Discussions