Model Arduino As Just Resistor For SPICE

I need to include an Arduino UNO R3 in my sketch to keep track of which terminals are which. I don’t want to actually simulate the Arduino for obvious reasons. It’s purpose is only to read voltages and send a control signal. I need to probe the voltages on the analog input pins during the simulation to ensure I won’t fry it. The control signal is sent by a VPULSE on the output of a digital pin for simulation purposes.

I thought it would quick and simple to use the built-in Arduino_UNO_R3 symbol, then assign a resistor SPICE model to it of 40 ohms or whatever. Alternatively, I would need to make a resistor to act as each pin, which would be a pain.

Is there no way for KiCAD to simulate the Arduino as a simple multi-terminal resistor?

Sure, define a .SUBCKT model for it.

2 Likes

I found out that this is not what I want to do. The pins on an Arduino are nearly 100 MOhm when set to output mode, so my circuit should treat it as open.

Thanks anyway.