Color Pal Sensors on Stingray
B.ASHISH
Posts: 28
We have interfaced a Color Pal on the Propeller Demo Board .It's working quite well.
But when we interfaced it to the propeller on the Stingray Robotic Platform,it's not even getting switched ON,although we have checked the pin connections.This was our test code
But when we interfaced it to the propeller on the Stingray Robotic Platform,it's not even getting switched ON,although we have checked the pin connections.This was our test code
CON _clkmode = xtal1 + pll8x 'These work with both 5MHz and 10MHz crystals. _xinfreq = 10_000_000 'DO NOT CHANGE, unless other than 5MHz or 10MHz. cpal_pin = 7 'Serial I/O pin to which the ColorPAL is connected. OBJ cpal : "ColorPAL" 'Object for ColorPAL. pc : "basic_sio" 'Object for PC serial I/O. num : "simple_numbers" 'Object to convert numbers to strings for output. clk : "clkset" 'Object to determine crystal frequency (5MHz vs. 10MHz only). pst :"Parallax Serial Terminal" PUB Start | red, grn, blu pst.Start(115200) clk.set 'Set correct system clock for 5MHz or 10MHz crystal. cpal.start(cpal_pin) 'Get ColorPAL set up. 'pc.start_explicit(0, 0, 115200) 'Get PC I/O set up. repeat longmove(@red, cpal.getRGB, 3) 'Get color values. pst.str(string(13, "R")) 'Send RGB components to PC. pst.dec(red) pst.str(string(" G")) pst.dec(grn) pst.str(string(" B")) pst.dec(blu)The potential difference between the Signal pin and the Ground pin on the Demo Board was about 1.8V but it was only a few mV on the Propeller Chip on the Stingray .Is it due to this ?Please tell us what is our mistake
Comments
You might try to disable the voltage translator and run directly from the Propeller pin off of the optional eight pin header per this docoment:
http://www.parallax.com/Portals/0/Downloads/docs/prod/prop/28230-PropellerRobotControlBrd-v1.0.pdf
You also might try it without clkset.spin and include the correct values, as Phil said it might not work under all conditions.
Jim