Shop OBEX P1 Docs P2 Docs Learn Events
Hello my name is...NOOB — Parallax Forums

Hello my name is...NOOB

PraetorPraetor Posts: 4
edited 2011-07-28 06:23 in BASIC Stamp
I just picked up the Parallax ("What's a Microcontroller") Homework Board at my local [area] Radio Shack and found it to be interesting, I'm still hesitant about learning this stuff because I have never tinkered with anything like this, and find it a bit intimidating...like maybe I break it some how, and not know it. But so far so good, i am making things go blink, blink (LED blinker). Although I'm far from a novice hobbyist, having know basics of electronics and have been making B.E.A.M bots for the past ten years, this is a bit advanced, yet fun. Can I run small gear motors of this particular board? Has anyone have an indepth description of putting together an LED chaser project?

Comments

  • xanatosxanatos Posts: 1,120
    edited 2011-07-16 12:28
    Hello Praetor, welcome to the forums! There are a LOT of folks on here who started as you did, with no previous experience of microcontrollers - and are now making very useful things from them - some even get paid to make those things! I also started in microcontrollers with the "What's a Microcontroller" kit from RS.

    Keep working through the manual until you get through it entirely. While a section may not SEEM like it might pertain to something that interests you, you will learn in each section, various skills that are applicable to other tasks once you are familiar with them.

    For a very simple LED chaser, instead of having one LED hooked to one pin as in a Blink LED experiment, you could have, say, 8 LEDs hooked to 8 pins, and in the program, sequentially turn one on, wait for a short count, then turn that one off and turn the next on, wait for a short count, then... and so on until you reach the last LED, then loop back to the first one, repeating the code indefinitely.

    After you do that manually with all that code, you might try doing it with a subroutine, that just changes the value of which pin to energize, but utilizes only a few lines of code, instead of 8 separate versions of the same thing. Subroutines are covered in the What's a Microcontroller manual.

    Then, when you're comfortable with that... the sky's the limit. You can make an LED Chaser with multiple selectable flashing patterns... You can make an LED chaser with hundreds of LEDS! With a few simple chips that you'll learn about (74HC595 shift registers) and the SHIFTOUT command that you'll learn about, you will be amazing yourself in no time.

    As long as you're careful with your wiring and follow the manual, you'll not break anything. Remember to initially use resistors to hook up LEDs, switches and other externals to your Basic Stamp board to help minimize the potentials for damage. Those kits are built for NOOBs, with some extra built-in resistors, etc,. to help shield the chip from damage.

    Feel free to ask questions on these boards, but do yourself a favor and try to figure out as much for yourself as you can. It shows you're serious about learning, and there's a sense of satisfaction and pride that comes from learning something new on your own that you don't get from having someone else tell you the answer. And the things you learn on your own efforts will stick with you. But for those times when there seems to be no clear way to figure something out, people on here are extremely knowledgable and helpful.

    Have fun!

    Dave
  • ercoerco Posts: 20,256
    edited 2011-07-16 22:42
    Praetor: Welcome! Sorry, you can't run a DC gearmotor directly off the HW board; a Stamp can't put out enough current, and your particular HW board has inline resistors that further limit current output. But the good news is that means its harder to burn anything out!

    When you're ready, check out the BASIC Stamp FAQ sticky for tips using a relay, that's the quickest way.

    Meanwhile, you CAN run a regular or continuous rotation servo off your HW board.
  • mrgriffismrgriffis Posts: 1
    edited 2011-07-18 12:57
    My computer doesnt have a Comm port, is there any way i can connect my homework board up to this computer, or will i have to get a new one?
  • stevebzzzzzstevebzzzzz Posts: 38
    edited 2011-07-18 13:11
    mrgriffis wrote: »
    My computer doesnt have a Comm port, is there any way i can connect my homework board up to this computer, or will i have to get a new one?

    If you don't have a COM port, how were you able to program the LED blinker circuit? I have the same kit from radio shack. I had to buy a serial to USB adapter to hook to my computer.

    http://www.parallax.com/StoreSearchResults/tabid/768/txtSearch/usb/List/0/SortField/4/ProductID/379/Default.aspx
  • PraetorPraetor Posts: 4
    edited 2011-07-19 13:54
    Thanks for the following philosophical words xanatos, and thanks to everyone else, also. I find this site to be helpful: http://www.brainless.org/OB&GC/Robotics101c.html I copied the programming and have yet to run it because i am breaking down the programming to further understand coding (in basic) inthis way, when i do run it, I know exactly what is going to happen and when, not to mention knowing how long. Just as the book and xanatos encouraged.
  • PraetorPraetor Posts: 4
    edited 2011-07-24 06:21
    Hello world...sorry, couldn't resist. Well following xanatos suggestion, "For a very simple LED chaser, instead of having one LED hooked to one pin as in a Blink LED experiment, you could have, say, 8 LEDs hooked to 8 pins, and in the program, sequentially turn one on, wait for a short count, then turn that one off and turn the next on, wait for a short count, then... and so on until you reach the last LED, then loop back to the first one, repeating the code indefinitely"...and after reading through LED pages of the "What's a Microcontroller" book of course, I'm understanding the programming aspect of microcontrollers, it's slow going but worth it. I finally put together an led chaser and it's proamming (see pic) I also had an idea: I wonder if you guys can share your opinions, of course,:lol::
    I want to remove the circuit board out of the servo that comes with the kit, remove the motor, and replace it with a small escap gear motor: http://www.micromouseinfo.com/introduction/dcmotors.html
    now i don't know what's the gear ratio for the servo motor but what do you guys think? I see it a lot more convenient (that is if it works) and slimmer then the standard servo I plan to experiment with this idea, unless it isn't a good idea (cue suggestions). I plan to further my micrcontroller experiences/experiments and hopefully make a bipedal robot and instead of using the (have no choice) bulky servos at every joint, I want to slim it down, using my idea of the escap motor replacement "project" (recursive "if t works" reference). This way i can research the controlled fall that is walking, simply because it's cool...i mean how would we all feel if we built this, ourselves: http://www.plasticpals.com/?p=2231 exactly! that is how i want to feel, too. buuut, I have time, so...let's get busy. thanks, guys and of course feel free to give opinions, suggestions and ideas.
    1024 x 767 - 124K
  • THAT guyTHAT guy Posts: 66
    edited 2011-07-25 20:18
    I'm pretty much the exact same as you, Praetor, but I started with Robotics with the BOE-Bot.
  • PraetorPraetor Posts: 4
    edited 2011-07-28 06:23
    Hey, Look...it's THAT guy...(again, sorry but I couldn't resist), yeah, I'm just finding the many different parallax products and saw the BOE bot robot book and kit and wished I ran into this particular project board, initially buuut, I ran into the homework board first and bought it, at the time it's the only parallax product Radio shack was carrying, now I hear they'll be carrying Arduino's, soon, i bought the homework board on the spur of the moment, but i'll be sure to "graduate" to the BOE bot once I am comfortable and very familiar with the programming [lanaguage] although i'm finding that I can "play" with two servo motors on the homework board, it's more for learning. So how far have you gotten with your BOE Bot, any cool custom mods to the bot?
Sign In or Register to comment.