2000 words is probably enough
Quote:
Originally Posted by
rmteo
Take a look at this
mikroBasic PRO for PIC
You can download a fully functional
FREE demo version (and all relevant documentation) of the software. The only limitation is that the compiler output is limited to 2,000 words of generated PIC code - you code will probably fit within this limitation so any number of students can use the compiler legally for free. Over 415 PIC microcontrollers are supported (PIC12, PIC16 and PIC18). There is a also a C compiler available which I highly recommend over BASIC to get your students started on the right track from the get go.
http://www.mikroe.com/img/compilers/...ler_ide_01.png
rmteo, you have a good point. I have not yet used 2000 words in my PBP programs with the wall racing robocars. My guess is that using photo cells will be no more expensive code-wise.
Thank you for the link.
Ken
I have a second PICWhacker
In the world of Hi-Tech I always purchase a second one - just in case.
If I were to switch, what do you suggest be my actions?
Ken
Thanks, remteo, for the video link
Quote:
Originally Posted by
rmteo
This vehicle reminds me of the original 'turtle' for which LOGO, the language, was developed.
I am on a slightly different tact. I am trying for a robocar that looks like and is driven like a modern automobile. The model level 1/10 sized radio control vehicles fit that description. They have accurate miniaturization and good speed (up to 30 actural mph). This may connect with middle school students.
Ken
The new .inf seems on different
Once, as I said in my post, Hyperterminal worked. Only once!
I wrote:
Quote:
If I eliminate ASCII echo and I type 'hello' I do get 'hello' on my Hyperterminal GUI. That is GOOD. Trouble is I disconnected the PICkit2 and reconnected and HELLO no longer appears.
???????Ken
1 Attachment(s)
I installeld the .inf file
Here's what Device Manager says:
Attachment 4851
More details in, less goose chases out.
Thanks Ken,
That's a start! The more information you give me, the easier this will be to trouble shoot. If I have to guess what you are doing, this is going to be pretty slow and painfull. But, here it goes... (I suppose, in a way I deserve it for leading you astray for a day or two).
There are two possibilities of where you are at, if I were to guess.
1. You have loaded the firmware from post# 486 into the used UBW32 using your Pickit2, and have now plugged it in with the usb cord to the back of your computer. And now you are looking in the device manager. I am wondering what, if anything occured in the lower right hand part of your computer screen. Did it say new hardware found? Did it try to find a driver, or did it do nothing?
2. You already tried #1 and have gone to step 2: You switched to the untouched UBW32. You downloaded the microchip driver here and have installed it (like you have mentioned) http://www.sparkfun.com/datasheets/D...C/UBW32inf.zip ,and have plugged the usb cable into it. You have checked to see if you get a "new hardware detected" message.
You have run the HID Bootloader executable from microchip http://www.cpustick.com/downloads/HIDBootLoader.exe , and you have seen if it can find your UBW32. Then you selected the first firmware I sent you in post#463. This one: StickOS for Microchip PIC32MX4-F512L UBW32 Board Bootloader (v1.80) (.HEX, UBW32 HID bootloader image) with the long name. Let the microchip bootloader try to load the firmware into the untouched one (not even using your PicKit2).
And now you are looking into your Device Manager, but see no new serial port.
Confusion reigns --- still
Once, two evenings ago I sat down, turned on Hyperterminal and got 'hheelllloo' when I typed 'hello'. I said to myself that's a good connection. It has echo.
I then went to the UART TOOL in PICkit2. It did 'hello' when I typed 'hello'. I thought that was good so I took a snapshot and sent it to the forum. Then I realized that UART has the same 'echo' or 'no echo' config as Hyperterminal. It was set to 'echo'. Therefore it was not connected at all.
Having done that I went back to Hyperterminal and got nothing again and again and even today. Hmmmm But it did work once.
In no case did I get a response from the code in the chip.
Which leads me to another question.
When PICKIT2 is told to READ it displays what is labeled "Program Memory" into which I thought the original StickOS had been loaded. Am I wrong? When I first hooked up my new PICWhacker to the PICkit2 I did a READ. All it showed was FF's throughout. I just read the spec. pages on memory organization. Page 93 mentions "Separate Boot Flash memory for protected code." Is that visible from a READ? I do not understand the virtual and physical memory charts on Page 94. Things have changed since the Digital Equipment Corp made the PDP-11.
Ken
My second PICWhacker is different
scalerobotics,
I pulled out the new PICWhacker and plugged in the USB connector. My PC immediately sang its song and gave me the NEW HARDWARE DETECTED GUI.
Under Other Devices it says "CDC RS232 Emulation Demo". Then it asks for a driver. I have installed the .inf file. What is my next step? Also please note that the USB port powers the blue LED on this Whacker. On the first board only the PICkit2 powered that LED.
Ken
The Bootloader does not see the device.
USB HID Bootloader says:
"Device not detected. Verify device is in bootloader mode".
Also StickOS BASIC Users Guide page 5 tells me to, " install the FTDI Serial Port transport drivers." Any idea what this is about?
Ken
WOW! What a difference!!!!
Push down PROGRAM button while inserting USB cable and==>
HID Bootloader says, "Device attached"
red, blue and yellow LED's illuminate.
white and green LED's alternately flash.
We have PROGRESS on a beautiful Sunday fall morning (the colors are peaking this weekend. there is snow on the tops of the Vermont hills) in sunny scenic Fitchburg, Massachusetts.
Ken
One step backwards - maybe
Below: my PC listed CDC RS232 Emulation Demo before. Now it does not.
Quote:
Originally Posted by
Kenjones1935
scalerobotics,
I pulled out the new PICWhacker and plugged in the USB connector. My PC immediately sang its song and gave me the NEW HARDWARE DETECTED GUI.
Under Other Devices it says "CDC RS232 Emulation Demo". Then it asks for a driver. I have installed the .inf file. What is my next step? Also please note that the USB port powers the blue LED on this Whacker. On the first board only the PICkit2 powered that LED.
Ken
LED's flash. HID Bootloader seems to work. Hyperterminal does not work. A GUI told me to restart the PC. That changed nothing. What happened to the "new device"?
Ken
Is there a way to capture this forum thread?
scalerobotics,
My focus is changing from teaching STEM to middle school kids to teaching the teachers about teaching STEM to public school kids.
Documenting our conversations over the last months might give me some insight on the process. Is there a way to capture this thread as a .doc or a .pdf file?
Ken
Saving the thread w as just a thought, but
The cost of the PICWhacker ~$40 is too much. Its appeal is that all the PICspins are available through 0.1" centered holes. Is there any PC product of which you know that has this PDIP configuration with only the PIC and a USB connector aboard? You guys had a forum "off topic" that sounded like you all built some yourselves. Did this work? I know that I could not solder those tiny leads on the PICWhacker board.
Ken
I have been using the 16F887
My big hesitation with switching to MicroC is configuring a USB connection. I have been very successful with the PICkit2 package.
This experience with the USB port using Hyperterminal has taxed my understanding of the system.
I hesitate to change. I assume I can get a USB compatible (0.1" centers) connector at our local YouDoIt Electronics store. I'll do more reading from the mikroBasic WEB page.
Thanks, Ken
I know why my first board did not work
I just now found that very tiny Power Source switch. On the first board is was in the wrong position to get power off the USB.
Now it tells me!
How to reconnect with BITWhacker's USB
Trial and error tells me that the only way to reconnect hyperterminal via C4 (the USB) to my BITWhacker after physically dislocating the connector is to be holding down the RESET switch while inserting the USB connector.
Anybody see that written down anywhere?
Thank you both for the leads to documentation of this thread.
Ken
Maybe things are getting clearer
Way back I thought a good middle school project would be
to race by R/Cing the car out a door, wait for it to find its way autonomously back through another door (This second door would have a naked 150W bulb at its threshold.), then repeat the cycle some number of times. The R/C - autonomous toggle to be controlled by powering ON and OFF the radio transmitter. If the transmitter's power is ON, the PIC detects activity from the radio receiver and switches control over to the original system.
Advantages of that idea are:
1. No need for proportional controls. A toy level car will do.
2. Photo cells are much less expensive than sonar sensors.
A problem is that the kit requires six DPDT coil driven relays: two for PIC generated steering, two for PIC generated wheel control and two for toggling between PIC control and R/C control. These are inexpensive, but add complexity in kit construction.
This car could also do the swarm-after-teacher who's carrying a naked bright light game. I've been changing my focus from teach-the-student to teach-the-teacher. What do you think? The RC system itself is full of "How things work" answers.
Your thoughts?
Ken