Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can the BASIC Stamp generate square waves?

BASIC square stamp waves
0
Posted

Can the BASIC Stamp generate square waves?

0

Yes, however, it is limited. The SOUND command in the BASIC Stamp I generates square waves which vary from 94.8 Hz to 10,550 Hz (non-linearly). The BASIC Stamp II, however, does not include any functions to generate an accurately timed square wave, however, it can be done manually as long as fast timing is not an issue. This can be done with multiple lines of code that simply set a pin high or low and pause for the appropriate duration in-between transitions. The timing will vary somewhat depending upon your loop execution speeds.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123