user-img

Repostshare

+ Follow

Arduino and Python script for testing simple logic I.C.s

Using an Arduino and Python script for testing simple logic I.C.s like 74xx TTL

Arduino and Python script for testing simple logic I.C.s
 
  • thumbnail-img
 

Story

Quite some time ago I created a simple TTL-I.C.-logic tester based on an Arduino and a Python script.

Currently it only tests a limited set of different I.C.s from the 7400 series, having 14 and 16 pins.

The chip-definition is in a separate JSON-based text file, adding new I.C.s is as simple as creating a Boolean expression for its output pins.

 

The tester prototype hardware part was build on an Arduino UNO, but moved to an Arduino Mega 2560.

 

The software part is a +300 lines Python 3 script and a text/JSON based I.C.-definition list.

 

The original algorithm was based on boolean expressions generating all possible input patterns, but a direct imperative set- and expect-pattern list is added.

 

The PCB for a Arduino Mega 2560 based shield is now populated and being tested. It should allow testing IC's with 14, 16, 20, 24 and 28 pins and power at the highest pin number.

Details

Current (v1.2) I.C.-list (actually tested): 4093, 40106, 7400, 7402, 7404, 7405, 7406, 7407, 7408, 7409, 7410, 7411, 7413, 7420, 7421, 7427, 7430,7432, 7433, 7438, 7451, 7486, 74125, 74132, 74138, 74139, 74153, 74240, 74244, 74257, 74365, 74367, 8T97

 

See: https://github.com/electrickery/logicTester

 

What the Python script does:

 

1. find the I.C. definition in the library

 

2. send the config to the Arduino

 

3. loop through:

 

 generate a bit pattern for all the exercise pins

 fill the query-template with the exercise logic levels

 fill the expected result template with exercise logic levels

 calculate the values for the query pins (convert to Python logic expression and evaluate)

 fill the expected result template with query logic levels

 send the query to the Arduino

 retrieve the response from the Arduino

 compare the expected result with the actual result

4. declare result and exit

 

New for version 1.3 are minimal power switching and Arduino only debugging commands. Note that the shown N8T97 is 44 years old and still working. 

 

(The logic probe is an old Elektor design)

 

This project was reposted with the permission of the author. If you are interested in this project and want to know more, Please check the original article: Simple TTL logic tester | Hackaday.io

And if you want to explore more projects, please follow the author: fjkraan (Hackaday). He has many wonderful projects and is an excellent maker. Enjoy it! :)

Arduino and Python script for testing simple logic I.C.s

Using an Arduino and Python script for testing simple logic I.C.s like 74xx TTL

111
 
6
0
0

Share your project on social media to expand its influence! Get more people to support it.

  • Comments( 0 )
  • Like( 6 )
/1000
Upload a photo:
You can only upload 1 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP

You May Also Like

View All
Add to cart
Board Type : GerberFile :
Layer : Dimensions :
PCB Qty :
Different PCB Design
PCB Thickness : PCB Color :
Surface Finish : Castellated Hole :
Copper Weight : 1 oz Production Time :
Total: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.

PCB Assembly

PCBA Qty: BomFile:
NO. OF UNIQUE PARTS: NO. of Components:
Country: Shipping Way:
Assembly Cost: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
3dPrintingFile : Size :
Unit : Volumn :
3D Printing Qty : Material :
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Acrylic Type : AcrylicFile :
Dimensions: Engrave:
Acrylic Qty :
Acrylic Thickness:
Acrylic Color:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
CNC Milling File : Size:
Unit: Volumn:
CNC Milling Qty : Material:
Type of Aluminum: Surface Finish:
Tolerance:
Surface Roughness:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Item Price Qty Subtotal Delete
Total: US $0.00
Certified Product | Supported Purchase: Full After-sales Protection