A preset resistor is a smaller PCB mounted version of a potentiometer. These are useful where adjustment or configuration of a circuit needs to be made but such adjustment only occurs during building a circuit, not during normal use.
An appropriate value for the PICAXE system is 10k (do not use 100k devices).
Preset Resistor
Schematic
PCB
Read a preset resistor value
This program will read a preset resistor (wiper connected to analogue input pin C.0, the ends of the preset resistor between V+ and 0V) and report the value read in the 'b1' variable.
- Code Example:
-
main: readadc C.0, b1 ; Read the preset resistor value debug ; Display the value pause 1000 ; Wait a while goto main ; Repeat
Copy Code Submit an Example
Create Module
A preset resistor may be connected to the generic terminal block create module.
Bill of Materials
Description | Code | Qty | |
---|---|---|---|
10k preset potentiometer | RES030 | 1 | Buy Now |
Simulation
Submit Your Own Code!
You must be logged in to submit code examples. Login now.
Share