Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Inchworm components

Status
Not open for further replies.
I have installed version 7.51 and the OS is ICD04020701.hex. Is this OK to download, and when I turned of FIFO buffers windows did not prompt for a restart.
EDIT: Ohh and I forgot, How can I tell which COM port it is hooked up to.
 
When I built my Inchworm about a month ago I suggested to DipMicro that if they were going to supply parts different from Bill's instructions that they should provide a note regarding what the subs were.

I had no problems with DipMicro. It did take a bit longer to get the kit in the US due to customs.

My Inchworm has worked fine from the first time I fired it up.

3v0
 
So far mine is working fine (at least all the voltages check out so far) I just need to get it to communicate with MP labs. I'm sure it will work fine. Maybe there needs to be total step by step for hooking it up and communication for us newbs.

UPDATE: I have successfuly connected. I couldn't find the proper firmware version until I manually selected the 16f877 part....duh anyways, now I just have to get something to program with it!
 
Last edited:
Bill,

I've email you a pic of my inchworm. I've tried a few more things - reinstalled mplab, tried another pc and also another rs232 cable - no luck.

I've used a scope and had a look at the pic - the crystals working, and there are some signals going from the rs232 chip into the pic. anything in particular i should look out for?
 
RS232 Loop Back

Loop back test for the RS232 section of the Inchworm.
--------------------------------------------------------

These instructions are for the people who are new to electronics.
Read, understand, and follow these instructions while I poke my finger in my eye. :) Please understand what this test does prior to doing it. It is not a learn as you do sort of thing. I do not want you to ruin your inchworm. Proceed at your own risk.

1. Remove the 16F877(A).
2. Hook the Inchworm to the PC with the serial cable.
3. Start hyperterm, select the correct com port.
4. Power up the Inchworm.
5. Note that when you type in hyperm window, nothing happens.
6. Jumper pin26 RX and pin25 TX on the PIC socket. ***
7. Type in the hyperterm window, you should see what you type.

If Hyperterm displays what you type with RX and TX jumpered and does not without the jumper.... then your RS232 cable is OK and the MAX232 is doing its job and providing TTL level ASCII to the PIC socket. This is good.

Problems
---------

If Hyperterm display the keys witout the jumper in place you have a short between RX and TX either before the MAX232 or between it and the PIC. Rare.

If Hyperterm does not display the keys with the jumper in place first check to see if maybe you have a good non-null-modem RS232 cable. Use an ohm meter to do this. Cable pins 2 and 3 should conduct and not be crossed.

If the cable is good you need to troubleshoot the RS232 section on the Inchworm. I will leave that to Bill.

*** Do NOT force a large wire into the PIC socket as if it were a breadboard. That would ruin the socket. Just hold the wire against the pins. If you can not type and hold the wire at the same time have some one else do the typing.

HTH
3v0
 
RS232 Loop Back

Loop back test for the RS232 section of the Inchworm.
--------------------------------------------------------

These instructions are for the people who are new to electronics.
Read, understand, and follow these instructions while I poke my finger in my eye. :) Please understand what this test does prior to doing it. It is not a learn as you do sort of thing. I do not want you to ruin your inchworm. Proceed at your own risk.

1. Remove the 16F877(A).*
2. Hook the Inchworm to the PC with the serial cable.
3. Start hyperterm, select the correct com port.
4. Power up the Inchworm.
5. Note that when you type in hyperm window, nothing happens.
6. Jumper pin26 RX and pin25 TX on the PIC socket. ***
7. Type in the hyperterm window, you should see what you type.

If Hyperterm displays what you type with RX and TX jumpered and does not without the jumper.... then your RS232 cable is OK and the MAX232 is doing its job and providing TTL level ASCII to the PIC socket. This is good.

Problems
---------

If Hyperterm display the keys witout the jumper in place you have a short between RX and TX either before the MAX232 or between it and the PIC. Rare.

If Hyperterm does not display the keys with the jumper in place first check to see if maybe you have a good non-null-modem RS232 cable. Use an ohm meter to do this. Cable pins 2 and 3 should conduct and not be crossed.

If the cable is good you need to troubleshoot the RS232 section on the Inchworm. I will leave that to Bill.

* Check the PIC for bent pins. If either pin 25 or pin 26 is bent under you may have found your probloem.

*** Do NOT force a large wire into the PIC socket as if it were a breadboard. That would ruin the socket. Just hold the wire against the pins. If you can not type and hold the wire at the same time have some one else do the typing.

HTH
3v0
 
That's a good idea 3v0 I was thinking of something along those lines the other day. Trying to use the busy LED as an indicator when the PIC is out of socket. Perhaps flea-clips might be handy.
The difficult part is it can also be the serial port on the users PC. Although internal serial ports tend to be fine the USB to RS232 can be wonky, example is the common PL-2303 based adapters. The default driver may not work but a 3rd part driver will. (I have an example of this on my site).

To connect to the inchworm you only need CON2, P1, U1, U2, U3, All caps, R18, D1, D2, D7, D8 and the crystal

If you have a scope and the crystals running that's a good start. A second PC is also handy to eliminate the PC as a cause of problems

Nice too would be a simple PIC programmer but since the Inchworm is a programmer that's unlikely.

It would be nice if there was a program that let you toggle the CTS, RTS, DTR lines.
 
William At MyBlueRoom said:
The difficult part is it can also be the serial port on the users PC...

A handy thing to have around is a loopback DB9, just a female DB9 with pins 2 and three jumpered together.

Plug it into the PC and you can loopback test the PC.
If that works attach the RS232 cable to the PC and and plug the
loopback DB9 into the other end. This tests the cable.

The user still has to make sure he is not using a null modem cable.

I am just starting to work with USB hardware and drivers. Regarding them I am mostly clueless at this point. Is there any reason that the loopback DB9 would not work to verify a USB to RS232 converter ?

3v0
 
3v0 - I tried testing the serial comms as you suggested - it works fine. I've already tried a 2nd PC - same problem :(

Both machines have internal serial ports.
I've justed tried it again using another power supply - just in case. No difference.

Really running out of options - tried 2 machines, 2 cables, 2 power supplies. :(
 
Last edited:
gregmcc said:
3v0 - I tried testing the serial comms as you suggested - it works fine. I've already tried a 2nd PC - same problem :(

Both machines have internal serial ports.
I've justed tried it again using another power supply - just in case. No difference.

Really running out of options - tried 2 machines, 2 cables, 2 power supplies. :(

This really leaves the obvious conclusion that the PIC isn't working, either a connection problem, or the PIC isn't actually programmed with the boot loader?.

Probably the next option is to check the PIC is programmed?, and you need something to read it with - such as a PIC programmer. Do you know anyone nearby who has a PIC programmer?.
 
Hello gregmmc it looks as if you are having similar problems to what I was having. For me hardware was not the problem. Go into MP labs >configure>select device and make sure it is showing 16f877, by default it was showing a 18f... device. This will allow you to select the proper OS. I could not connect until the OS was downloaded. I hope it helps.
 
Sig239 - your a genius!!! Its working!!

I had some other pic selected. Selected the 16f877 and uploaded the OS - boom - its working! Shows all the right voltages as well.

Thanks for all the help guys.
 
Really, Wow:D! You certainly don't have to do that, but I will let you!:D A firefly board would make for a pretty sweet ZIF adaptor (after I get the ZIF socket of course) for the programmer!
 
E-mail sent... Silly me forgot to fill in a subject...If you don't get it I'll resend with a proper subject line. thanks again!
 
A really usefull tip - I was just about to replace the pic. Fired up the hello world test program - works like a charm.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top