meaning of CLK
qiuqiuaaa
Posts: 37
On the sensor, there is a Pin named SCL, and I know it means clock. I do not know the exact function of the clock, and can it be used as a timer in my program to control the time spent of a loop? Thanks. (I'm using Basic Stamp)
Comments
If you look at a serial in parallel out chip, you will see the basic principle - a series of latches collect the serial data and converts it into useful parallel data (bytes or words) for the chip to use or to store for later use.
How accurate do you want the timing?
Thank you. I am not familiar with Propeller. Can it be mounted on my Boe-bot instead of Stamp? And is it hard to learn the language? I have only used Pbasic...
But no, it's not hard to learn the language of the Propeller. Spin was designed to be simple, and it's very similar to PBasic.
And, as a nice coincidence to your thread title, the Propeller does have a CLK type variable: CNT! It's the system counter, and can be used for most timekeeping purposes.
Several forum members have used QuickStart boards with a BOE-Bot. Here's Jose's version.
The Propeller Protoboard (regular and USB versions) fit the BOE-Bot just fine. Here's a link to a robot using a Propeller Protoboard. I originally used the board with a BOE-Bot but transferred it to the omni bot. I added a breadboard to the bottom of the Propeller Protoboard so I could add experimental circuits to it.
You'll be amazed at what the Propeller can do compared with a Basic Stamp. If you get stuck on some aspect of the Prop, just ask a question in the Propeller forum. People there are very helpful.