Vilros Circuit#10 Electric Motor

Hello,

I've been playing around with the Vilros Ultimate Starter Kit on my Arduino Uno Rev3. Following the book, I've made my way through Circuits #1-9, but I am stuck at Circuit #10 (Spinning a Motor). I've uploaded the code successfully. I've mimicked the board setup exactly, but still no results. I'm wondering if anyone else has had problems here. Although it was supplied with the started kit, my suspicions lie with the transistor.

The transistor is labeled P2N2-222A C13. Is this transistor suitable for the Vilros electric motor?

The electric motor works. I've run it with the 5V and ground from the board.

Thanks,
Matt

Can you post a diagram of how you have everything wired up - a photo of a clear pencil drawing will be fine. Also post the code you are using and PLEASE use the # icon to enclose the code in code tags.

...R

I'm having the same problem with this one... :~
My transistor also is different than the one in the book. The one in the book says it is a PN2 222A A18, but mine is a PN2 222A C48.

This one looks to be a similar example: THE BLOG: Circuit-03 - Spin Motor Spin

Hi,

I am also having the same problem with the Vilros #10 Circuit. I turned on the motorOnThenOff() and commented out the serial function it defaults from as well. I can hear the motor clicking each second and see the Arduino sending the data from the Arduino LED, but no movement. I also had a similar issue with the Vilros circuit #8 where my servo motor was not rotating properly and moving incredibly small increments, almost not visible rotation. I'm not sure if there is a problem with my Arduino board and voltage being sent or if I was just unlucky enough to get two broken motors...Currently, I'm waiting on a call back from Vilros. They are looking into it and testing the circuits. My Arduino kit is the Vilros Ultimate Starter kit.

Hello:

I am having the same issue on Circuit #8...did Vilros ever give you any help?

I believe I read another thread where Circuit #10 had an error in the design. Reverse the direction of the diode and it works.

K

Same issue here... any solution?

Hi, the 2N2222 transistor is known by many numbers and all those quoted so far are 2N2222 type.

Can you please post a copy of your circuit, in CAD or picture of hand drawn circuit in jpg, png or pdf format.
Have you tried just connecting the motor to the battery to see if it works?
Do you have a multimeter to do some measurements?

Thanks Tom.... :slight_smile:

In the 'what you should see' section it says the motor should spin if you assembled the components correctly. This is not true, the code makes it so (unless you have changed the code) you must open the serial monitor and give it input to make the motor start spinning. Check for this, I spent an hour trying to debug my circuit before I realized this.

I am also a new user and had problems with "Circuit #10" in the "Vilros Ultimate Starter Kit Guide." But I found success when trying

along with source code at

http://www.oomlout.com/ARDX/CIRC03/CIRC03-code.txt

It is very similar to "Circuit #10".

saki

Do you know how to draw a schematic of your wiring and post a photo ? Can you take a photo of your wiring (from about 12" directly above the circuit) and post a photo ?
(FYI, it's a 2N2222 transistor)
2N2222

We were having exactly the same symptoms as Edward described - just some slight clicking (and also slight whining) with motorOnThenOff(). Saki's post gave us the clue to get it working though. The circuit he linked to is almost exactly the same, except that it has a 2.2k resistor from pin9 to the transistor, instead of the 330 ohm resistor shown in the USK.

Based on this we experimented with increasing the resistance - we just added another 330 in series to make a 660 ohm resistance - and it worked like a charm! With the 660 ohm circuit using serialSpeed() we currently still have a hard time getting the motor to spin up with PWM values lower than <140, but in general it works great now. So anyone having similar troubles I recommend experimenting with higher resistances on the control path, maybe up to 2.2k, and see how that goes.

Bob

I was able to get mine to work by just using an external power supply connected to the power jack (the round one). I'm using a 12V DC, 3A supply from an external hard drive (I think), but other voltages should work as specified here for the Uno https://www.arduino.cc/en/Main/ArduinoBoardUno#techspecs.

As for circuit #11, it also wasn't working for me. I had the diode backwards, just as in the circuit illustration (but the schematic has it ok). The cathode (the side with the black bar) has to be connected to 5V. Then the relay works.

The transistor is labeled P2N2-222A C13. Is this transistor suitable for the Vilros electric motor?

I think you may be connecting the transistor backwards.
The common 2N2222 is wired E,B,C (from Left to right with the flat face of the TO92 package facing you)
The LESS COMMON P2N2222A is exactly the opposite, C,B, E (from Left to right with the flat face of the TO92 package facing you)

Do you know how to test a transistor with a DMM on diode scale ?

Hey guys, I had a same issue with Vilros Circuit 10 and 11. The schematics are correct but I found out that they incorrectly draw the drawings. Try switching emitter and collector in the transistor.

google 222a data sheet, and note pinout for collector and emitter is opposite of what experiment circuit directions say. turn the transistor around or re-wire ----> and plug in 9v battery to the uno if needed

re-read the documentation ----> comment out serialSpeed() , and uncomment any or all above serialspeed to run

void loop()
{
// Here we've used comments to disable some of the examples.
// To try different things, uncomment one of the following lines
// and comment the other ones. See the functions below to learn
// what they do and how they work.

motorOnThenOff();
motorOnThenOffWithSpeed();
motorAcceleration();
// serialSpeed();
}

to run serial speed, uncomment it then ----> open tools ----> serial monitor

I add another 330 ohm resistor (total 660ohm) and switch the emitter and collector logs then it works!