Added: 4 years ago
From: cellularmitosis
Views: 2,265
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (2)

Sign In or Sign Up now to post a comment!
  • In order to convert PWM into an analog voltage we have to filter out the

    pulses and store the average voltage. The resistor/capacitor combination

    in Figure 5.31 will do the job. The capacitor will hold the voltage set by

    PWM even after the instruction has finished. In order to hold the

    voltage relatively steady, a program must periodically repeat the PWM

    instruction to give the capacitor a fresh charge.

  • Hi, this is great! I have a bunch of these gauges and ones similar that I want to use with a Basic Stamp 2. I am wondering if I would be able to use PWM to make it read a steady value of say 10, and then with the logic change it to read a steady value of 20. I want to tie the gauges into my project and put different scales behind to suit my needs. Do you think that would work? I know how to program the BS2, but I am not experienced with PWM and these indicators.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more