Page 16 of 24 FirstFirst ... 61415161718 ... LastLast
Results 151 to 160 of 233

Thread: GCode: open source paintball gun board/software

  1. #151
    I used to program in basic when I was 10

  2. #152
    Yeah, I've spent some time with it in the past. My first programming class in junior high was in BASIC. The first PIC setup I had about 6 years ago was a PIC BASIC Stamp. I'd really prefer to program in C, or even in assembly.

  3. #153
    I setup a test circuit for a PIC18F4550 this morning and played around with it a bit trying to get it to work with no success. I learned about decoupling capacitors while I was doing that.

    I was able to find some sample code to turn on an LED by manipulating registers on the PIC. I was able to compile and upload it to the PIC, but it just wouldn't work. I had to scavenge a crystal from some old electronics since I didn't have any. Tried running it using that crystal as the external clock and with the internal also and it didn't seem to work either way. I'm guessing it's something to do with the config setup in my code. I've found so many varying methods of how to configure the chip. It's a little frustrating.

  4. #154
    Junior Member
    Join Date
    Jun 2013
    Location
    Corvallis Oregon
    Posts
    6
    You may have better success starting out with a low end PIC such as a 12F675, they are easier to configure and the data sheet is not as daunting. I use the 18F4550 in my OEM stuff since I need a USB bootloader and I bought the CC8E compiler, but that is a powerhouse of a chip for the price. It also has a massive data sheet to match. My current 18F4550 OEM project is streaming audio, updating an OLED screen and running other time critical tasks all at the same time. I had to make use of both the low and high priority interrupt mechanisms to pull it off and it makes my brain hurt.

    The biggest issue with using PICs is not reading the data sheet carefully, getting the fuse settings right and getting the IO setup correctly since in many cases it defaults to analog or some other pin function. Generally you need to turn off analog and comparator modes to get plain digital IO.

    Jamie

  5. #155
    Quote Originally Posted by moorejl57 View Post
    You may have better success starting out with a low end PIC such as a 12F675, they are easier to configure and the data sheet is not as daunting. I use the 18F4550 in my OEM stuff since I need a USB bootloader and I bought the CC8E compiler, but that is a powerhouse of a chip for the price. It also has a massive data sheet to match. My current 18F4550 OEM project is streaming audio, updating an OLED screen and running other time critical tasks all at the same time. I had to make use of both the low and high priority interrupt mechanisms to pull it off and it makes my brain hurt.

    The biggest issue with using PICs is not reading the data sheet carefully, getting the fuse settings right and getting the IO setup correctly since in many cases it defaults to analog or some other pin function. Generally you need to turn off analog and comparator modes to get plain digital IO.

    Jamie
    Ahh.. Thanks. I did also find the help section in MPLAB explaining the config settings for each chip. I was using this one since I'm gonna throw it in the Pinguino board I'm making. I also have a PIC18F2550 that would work for the Pinguino as well (but that's the same datasheet as the 4550) and a PIC18F1220 and a PIC16F688. I guess that last one would be the simplest to start with.

    I'm guilty of frequently just jumping into the deep end and flailing about until I get my bearings. I must not like doing things the easy way. lol

  6. #156


    Played around with the PIC some more last night and got a basic blinking example working. I can't seem to get the external crystal working, though. Although, I did scavenge it from an old DSL modem board, so who knows if it works right? I need a 20MHz crystal to setup the Pinguino board, and all I've got is a 10MHz and 25MHz crystal, and a 20MHz oscillator package. That one would probably work, but I'd rather get a 20MHz crystal to keep the circuit simple. I'm gonna swing by Radio Shack and see what they've got.

    I find it odd that I can get assortments for resistors, capacitors, etc. online, but it's hard to find an assortment of crystals. I found one on amazon and one on ebay, but they'll take a while to get here.

  7. #157
    Canadian Ambassador crazyfrenchbiker's Avatar
    Join Date
    Mar 2013
    Location
    Omaha, NE
    Posts
    14
    Hey Gabe,

    I really like what you have going on here. Simon tells me you're looking for a couple dev resources to help program some chips on some stock guns. I'd love to help out.

    My strengths aren't in coding C, but .net apps. However like you, I really like to tinker and I'm sure I'll figure it out. I have a few friends who will help me out with questions, I am sure!

    I don't have any hardware at the moment, but I'd be more the willing to purchase whatever I need to get started in testing/writing.

    Cheers,
    Gilbert

  8. #158
    Junior Member
    Join Date
    Jul 2013
    Posts
    1
    Hey Gabe,

    This is Jamie, electronics engineer from Empire
    I love this thread! I love to see peoples thought processes in tinkering and learning. Anyway I just wanted to say if you have any general electronics related questions or general PIC micro questions I'd be happy to help.
    I design all the empire boards using PIC micros and I know how weird they can be sometimes. The good part is once you figure one out you have a super powerful line of micros that let you do so many things. I started out with a pic18f26k20 myself when using PICs and i do agree with someones earlier statement that it would be easier to start out with a 12F or 16F but if you learn 18F the lower chips will seem less complicated.

    Have fun!
    -Jamie E

  9. #159

  10. #160
    Insider Curt's Avatar
    Join Date
    Jun 2013
    Location
    Atlanta, GA
    Posts
    295
    Supports Inception Designs
    Supports Inception Designs
    So I decided to release the firmware for the Morlock series of boards; share and enjoy:

    http://northarc.com/morlock_firmware.zip

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •