Hi really enjoyed your video. Makes me think of using the PI pico myself. Just in case you haven't found out yet, The pull up/down command is to make sure that an unconnected input has a definite logic level. With the switch open the input can meander up and down because it has a high impedance (it doesn't take much current to make it high or low) so can be affected by other voltages and currents nearby giving a false input. A common practice is to have pull up resistors (or programmed as pull up) on inputs. To activate the input, the switch connects to ground or 0V. The advantage of this is that if the switch is remote from the input pin no power rail is needed at the switch for operation. This reduces the risk for shorting out the power supply. Hope this helps.
It is a bit of an addition to what is mostly an experimental layout. Sacrificing realism for some interaction. At some point I’m going to replace the gates with barriers, which I hope to automate too. Bear with me!
Hi really enjoyed your video. Makes me think of using the PI pico myself. Just in case you haven't found out yet, The pull up/down command is to make sure that an unconnected input has a definite logic level. With the switch open the input can meander up and down because it has a high impedance (it doesn't take much current to make it high or low) so can be affected by other voltages and currents nearby giving a false input. A common practice is to have pull up resistors (or programmed as pull up) on inputs. To activate the input, the switch connects to ground or 0V. The advantage of this is that if the switch is remote from the input pin no power rail is needed at the switch for operation. This reduces the risk for shorting out the power supply. Hope this helps.
Great explanation. Thank you.
There are no gated level crossings in UK with warning lights. Barriers, yes, gates no. Nonsense
It is a bit of an addition to what is mostly an experimental layout. Sacrificing realism for some interaction. At some point I’m going to replace the gates with barriers, which I hope to automate too. Bear with me!