I mentioned before that I purchased two sensors for my Johnny 5 robot. But I was told that these two sensors, which are the Infrared Proximity Detector and the Devantech SRF04 Ultrasonic Range Finder, don’t work with the SSC-32 (which is the microcontroller that I have). My question is if the output of my SSC-32 for the sensors are analog or digital?
It’s incorrect to call the SSC-32 a microcontroller. It’s a servo controller. The SSC-32 has 4 inputs that can be used with sensors. They are analog or digital depending on the command used to read them.
Um, the OUTPUT of the ssc-32 servo controller is digital… you get a logic LO, a logic HI, or a PWM signal timed to drive standard hobby servos.
The ssc-32 provides 4 INPUT pins which are analog… however nothing prevents you from measuring a digital signal with the analog inputs as you just get one of two possible value ranges rather than a proportional range of values.
The proximity detector is a digital device. you can use two of the ssc-32 outputs in digital HI/LO mode to control the LEDs, and one of the ssc-32 inputs to read the detector, which will return either HI or LO, as either nearly 255 or nearly 0 respectively.
The SRF04 is also a digital device however because the SRF04 requires somewhat accurate timing of the digital signals it is not possible to interface it directly to the ssc-32, which operates somewhat asynchronously with respect to serial communications with the host.
I believe in one of the other recent multiple threads about this subject that zoomkat had listed a couple of alternative ultrasonic sensors with analog outputs that will interface directly to the analog inputs of the ssc-32.