This is a basic example of controlling a stepper motor using an Arduino. I’ve coded from scratch a function that allows the motor to ramp up (accelerate) and ramp down (decelerate) based on a specified rate. The code uses the basic Arduino Stepper.h library. While other libraries have acceleration built in, this might be useful to some.
This ramping example could be used to control virtually anything using a PWM output and a solid state relay. Temperature is a common application of controlled ramping.
Ramping (acceleration) up and down
Potentiometer to set speed
Enable/disable button with debounce routine
Limit switch input to detect the home position, end position and the locations where ramping up/down should begin
I needed to make a graph on a web page and I didn’t want to use images because then they would have to be accessible to the end user. I was scouring the Internet trying to find a solution to this problem.
Turns out the <div> and <span> tags are great for this. The problem is you can’t print them unless you have Print Background Images enabled in your browser. I found a work around for this: use the same <div> or <span> tags to make your rectangle but instead of setting the dimensions of the box and the fill color just set the height and the border width to the size you need.
Here is how I make horizontal bars that will print in any browser:
<SPAN style=’border-left: black 100px solid; display: inline-block; height: 10px></SPAN>
That line will make a black rectangle that is 100 pixels long and 10 pixels high. Just change the border width and color for each additional bar.
I browse craigslist a lot and the constant warnings presented before visiting the jobs, cars or personals can be annoying. This script will rewrite the links for all those sections so you can go straight to the listings.
The 2004-2006 Pontiac GTOs have a small issue with the plastic clips that hold the floor mats in. These buttons are made of plastic and rely on very small fingers to hold them in place. It is very easy to snap these clips.