Connecting Whisker Sensor to SSC-32 (newbie question)

Sorry if this is already covered somewhere else, but I’ve scoured the website and couldn’t find anything. If it is, just let me know!

I have a BRAT with an SSC-32 and a BMP-01 Whisker Sensor. I have the BRAT up and walking around, but now I want to add the Whisker Sensors. I’ve only worked with basic electronic circuits, and I’m paranoid I’m going to break something. What exactly do I connect to get the value read in?

I know I have to go from the power through the resistor and into and I/O pin. But, where on the SSC-32 is the power and I/O pin??

I’d appreciate anyone’s help; I’m sure I’ll be fine once I get started!

Thanks,
Kevin

The simple answer is probably to connect the common connection of the microswitch to the digital input pin on the ssc-32, and connect the NO (normally open) connection on the microswitch to ground on the ssc-32. When the status of the digital input pin is queryed, an ascii 1 should be returned when the switch is open, and an ascii 0 should be returned if the switch is closed. More info in the ssc-32 manual about the I/O pins.

Do the whisker sensors have pull-up/down resistors.

The whisker “bumper switches” come with 10k resistors that can be soldered for pullup or pulldown. The gist of it is, connect one end of the switch to the I/O pin. Connect the other to either…

ground, then install a resistor from the I/O pin and 5vdc. When the switch is open the I/O pin will read 5vdc, when the switch is closed the I/O pin will read 0vdc.

5vdc, then install a resistor from the I/O pin and ground. When the switch is open the I/O pin will read 0vdc, when the switch is closed the I/O pin will read 5vdc.

Thanks! That should be extremely helpful, I’ll try that out as soon as I get a chance.

Just to make sure I know exactly what you’re talking about… When you say I/O pin, you mean the pin closest to A, B, C, or D, correct? And when you say 5vdc, should I attach that directly to the input power from the battery, or the + pin next to the A or C pins?? I assume either will work, but is there a standard “best” way to do it?

I appreciate everyone’s help!

Don’t use the VL or VS, use the + by the ABCD pins.

Hi,so what would be the matlab syntax to read the digital input at A?
A is going to give error.
There should be a matlab syntax for it to recognize the port and get the value of A?
Is it
fprint
fscanf
fread
fgets
fgetl
?
I have tried all of these. No help.
:frowning:

Hi,so what would be the matlab syntax to read the digital input at A?
A is going to give error.
There should be a matlab syntax for it to recognize the port and get the value of A?
Is it
fprint
fscanf
fread
fgets
fgetl
?
I have tried all of these. No help.
:frowning:

See my reply in your other post…