Arduino Continuous Rotation (360 degree) Servo Driver Implementation

This servo rotates fully forward or backwards instead of moving to a position. You can use any servo code, hardware or library to control these servos. Good for making simple moving robots. Comes with four different horns.

To control with an Arduino, I suggest connecting the control wire to pin 9 or 10 and using the Servo library included with the Arduino IDE. Position “90” (1.5ms pulse) is stopped, “180” (2ms pulse) is full speed forward, “0” (1ms pulse) is full speed backward.

Even though we have used continuous servos, the interface is universal enough to handle any other motor (ie. DC brushed).

Interface

 

Implementation

Example Arduino Code

How to bold first (or n-th) paragraph of text

In the last two projects I’ve been asked a simple task to bold first paragraph of text. This task proved to be very complex or quite trivial depending on my customer’s requirements. Hope someone will find code snippets below helpful.

Lets assume your HTML code looks like that:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur imperdiet purus in dictum scelerisque.

Vivamus ut consectetur tortor. Phasellus egestas magna nisi, non tempus purus malesuada sed.

You want to bold first paragraph like this (visual representation depends on CSS):

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur imperdiet purus in dictum scelerisque.

Vivamus ut consectetur tortor. Phasellus egestas magna nisi, non tempus purus malesuada sed.

This can be achieved in at least two ways.
Read more