Via Terminal Block

A screw terminal block is a convenient means to connect arbitrary signals and make temporary connections to a PICAXE circuit. Wires from a sensor (an input switch or other circuit) are inserted into the terminal block and the associated screw clamps the wire into place. Each connection to the terminal block is insulated from the others.

Related Commands:

Print Page

Share

Schematic

PCB

Reading an analogue input signal

This program will read an analogue input value on the centre pin of the terminal block and report the value read in the 'b1' variable. The analogue voltage must be between 0V and V+. A potentiometer may be connected to the terminal block, wiper to the centre pin of the terminal block.

Code Example:
main:	readadc C.0, b1		; Read the analogue input value
	debug			; Display the value
	pause 1000		; Wait a while
	goto main		; Repeat
Copy Code Submit an Example

Create Module

An input sensor may be connected to the generic terminal block create module.

Bill of Materials

DescriptionCodeQty
3-way 16A Interlocking Terminal Block CON006 1 Buy Now

Simulation

No Image Selected

Submit Your Own Code!

You must be logged in to submit code examples. Login now.