nex8192 has left #rust-embedded [Error from remote client]
broderick[m] has joined #rust-embedded
<broderick[m]>
I'm looking to write a driver for a peripheral that would need a I/O pin that can switch between an input and output. The IoPin trait looks to have been dropped after e-h 0.2.7; what is the suggested way to handle this generically with the 1.0.0 prereleases?
tiwalun[m] has quit [Quit: Idle timeout reached: 172800s]
AdamHott[m] has quit [Quit: Idle timeout reached: 172800s]
stensonb[m] has joined #rust-embedded
<stensonb[m]>
Silly, basic electronic question... I'm looking to read an analog knob potentiometer (via ADC, I think)...why would I choose 10k over 100k, or 1M ohm here....the circuit with the pot has no other load...and would be in series from vcc to the pin. If they all have the same physical travel, wouldn't they all scale the voltage identically?
<marmrt[m]>
Your ADC will have some input impedance that might skew the measurement somewhat at very high resistances.
<marmrt[m]>
Is it an application where saving a milliamp matters?
barnabyw[m] has joined #rust-embedded
<barnabyw[m]>
not sure what you mean by “in series from vcc to the pin”, usually you’d have the pot set up as a voltage divider with the wiper connected to the ADC pin for that use-case. So the whole resistance of the pot is connected between +va and 0v, and sees a constant current flow of +va/r
<barnabyw[m]>
so with a +va of 3.3v and a 10k pot, there’s a constant 0.3mA current flowing through the pot, which you’re unlikely to notice unless you require extremely low power consumption
<stensonb[m]>
No real need to save milliamps...yeah, I was trying to explain I'll have nothing else with the pot...just +va, 0v, and the divider output.
<stensonb[m]>
Ah...so I have to make sure my chip can register voltage with such low current (if using 10k pot)
<barnabyw[m]>
I don’t know of any general-purpose ADC which would have trouble with a 10k or 100k pot, typically they have an extremely high input impedance and can be understood to not consume any current (unless you’re worried about picoamps)
<stensonb[m]>
Would the chip spec sheet have this detail for their ADC support (minimum current requirements)?
<marmrt[m]>
Yeah, you should have Input Impedance or Input Current listed in an Electrical Characteristics chapter somewhere
nex8192 has joined #rust-embedded
nex8192 is now known as Guest7282
Guest7282 has left #rust-embedded [#rust-embedded]
starblue has quit [Ping timeout: 256 seconds]
nihalpasham[m] has quit [Quit: Idle timeout reached: 172800s]
starblue has joined #rust-embedded
LiamKinne[m] has joined #rust-embedded
<LiamKinne[m]>
Hey all, does anyone know of a no-std compatible toml parser?
K900 has quit [Quit: Idle timeout reached: 172800s]
fu5ha[m] has quit [Quit: Idle timeout reached: 172800s]
chrysn[m] has quit [Quit: Idle timeout reached: 172800s]
t-moe[m] has quit [Quit: Idle timeout reached: 172800s]
_whitelogger has joined #rust-embedded
<Ecco>
I have a questionr regarding Embassy, and more specifically it's HAL