Friday, July 11, 2008

USBURN Programmer Brenner8

Photobucket

Photobucket

Photobucket

USBURN PIC programmer by sprut

i works for me ... how about you ?

Saturday, July 5, 2008

Friday, July 4, 2008

PCB testing

Photobucket

testing testing 1..2..3...
1. QFP 64 pin
2. QFP 44 pin
3. SOIC 28pin
4. SOIC 14pin
5. Magnet holder
6. 0805 pad
7. SOT-223
8. CAP SMD DIA6.3mm
9. many many 0.7mm holes

First Look @ Evolve Reconfigurable Robot !

Photobucket

Photobucket

LOL... after months of hard work. Evolve is finally born.

Programming Xbee using X-CPU

We will need a basic schematic to link the computer serial com to xbee.
Inspired by cairn_idris FT232RL board with xbee. I used USB to Serial MB5.

Photobucket

Schematic Design : xbee_X-CPU

Thursday, July 3, 2008

NUS - EE2001 FAQ

EE2001 Tips 101

1. Is the GAs or TAs strong in technical knowledge?
Not all.

2. Where to find sample?
From your seniors, Microchipc or google.

3. What are the good to have for A grade?
Serial Communication, linking with computer(s), SMS, internet, Webcam, innovative features,RF ID, networking, VisualBasic.

4. How to score better?
Work hard, be ahead of schedule. In CA1, go beyond individual system; link them to
one another sub-system together and a computer. CA2, show full working model including the build house or airport. Final presentation, MARKETING ONLY do not waste your time on explaining circuit.

5. Can I buy electronics kits from the shelf?
Yes, you can. Where? from SimLim Tower. They cost between $10 - $70. Note: GA will ask you questions on bought circuitry; make sure you understand them.

6. What amazing things our seniors done?
Use PIC16F877 to built (or link with) a Line tracing robot, Serial communication, PDA, Wireless, SMS, Hand phone, I2C intercommunication, Webcam, RF ID, Remote IR, Remote RF, SD card, Internet.

7. Are the circuitry used complex?
No, think voltage divider. Most 80% of the circuitry is voltage divider.

8. What resistor to use for IR transmitter and Receiver?
10 ohm and 1M ohm.

9. What is the first thing to program?
Try to get your timers up, because they are very important. Eg. serial, PWM, delays, Ultrasonic sensor, LED dimming, Motor control, RC servos… all uses timers.

10. What is a good interrupt timing to use?
I recommend 10us interrupt, as it is good enough for Servo control and other application. Too short in will overflow into next interrupt cycle; too long it will be useless.

11. Should we use the motor driver from the store?
If you need bi-directional drive then use it,else just use a ULN2003 buffer inverter.

12. Why PIC burn?
PIC16F877 don’t source current well, so sink them. Sourcing a LED is ok, try putting in a motor and it won’t work. For higher current application use a motor driver or ICs to protect your PICs.

13. Should I design more hardware or software?
Try to use minimum circuitry. Hardware = hard to reconfigure especially when you start de-soldering. Software = easier to change , just a flash away.

14. Why ICSP?
So you can program the chip even if it is still inside the circuitry. Don’t have to puck in and out the programmer board.

15. How to ICSP?
Using the programmer and io board given:
Programmer Pin1 -> Target PIC Pin1 (MCLR) may need a diode
Programmer Pin12 -> Target PIC Pin12 (GND)
Programmer Pin11 -> Target PIC Pin11 (VCC) may not be need if you supply power to io board
Programmer Pin39 -> Target PIC Pin39 (PGC)
Programmer Pin40 -> Target PIC Pin40 (PGD)

16. Stupid things pass students done?
-There is one student attempting to fine a perfect 1k ohm resistor, for a LED circuit. He measure almost all the resistors from the storage, then he tried parallel 2x 2K ohm resistor. (Don’t be surprised if it is your teammate)
-Trying to write programs from scratch.(eg. LCD) Yes, it is a good learning experience but be practical. All the source are available easily online use them and understand them. Don’t waste your time.

17. Does the GA check our programming source code in CAs?
No, 99% of the time they don’t check. Because not it takes time you understand code, especially when it is written by students. (because not many can comment their codes well)

18. Doing fail safe programming or hardware circuit?
Yes because it is a good practices. No because your project only need to work on 3 presentation. (Who cares if it can works after that.)

19. How the GA give marks?
-Working model + additional feature = marks++
-Many sub-system = marks++
-Innovative idea = marks++(things they have not since before)
-Complex Circuitry and Over programming = same marks (so don’t overdo a system)

20. Can you spend more than the allocated funds?
Yes, if it is from your pocket. My group spent about S$400 in addition.

21. How can we achieve maximum efficient/output?
Share your knowledge, specializing, and be task oriented. Remember time = marks.

22. How many hours I spent on the modules (for special term)?
On the average 12 hours a day, for 6 week. (crazy me :D)

23. Should we build or buy the house/airport?
My advice is to buy, because it there is no additional marks if you build one.

24. Can I wholesale codes from senior?
Strictly speaking NO, unless you understand them.



More FAQ will be upload...

Arduino

My Arduino:
Photobucket
*Link : Arduino

Arduino with xbee module:
Photobucket

Arduino with AX-12+ servo, the schematics used is show in AX-12+ datasheet.
Photobucket
Robotis AX-12 source: AX-12+

Arduino with Accelerometer MMA7260Q + 2x AX-12+
Photobucket
*Soucre code: EE3001

Arduino with CMPS03 (I2C)
*Soucre code: Compass

Wiimote

Photobucket

I have tried some programming using GlovePIE v3.0. will post up my source code soon

My Electronics Store

Components:
Photobucket
Resistors & Capacitors:
Photobucket

Evolve Skeleton

Yeah, Evolve’s metal skeleton. Thanks to UltraEngineering.
Photobucket
Photobucket
Photobucket
My robot first block, linked with two Robotis AX-12 servo.

ICD2 Clone

GTP-programmer:
- no Windows Vista support
- can only program limited PICs model
- no firmware update
- WinPic800

ICD2 Clone
- support directly by Mplab
- support directly by PICC
- USB base
- no external power supply


My new test programmer is the ICD2 clone base on Lothar Stolz new USB version ICD2 clone.

Photobucket

ICD2 is used by Microchip programmer support by many compiler. I am using Mplab and PICC-18 Pro for my PICs programming.

*Link : PCB Design

HyperTerminal for Windows XP

HyperTerminal by Microsoft is pretty good for general applications, but for development i prefered "Terminal". Done by Bray.

Photobucket

*Link :Terminal

PIC18F2550 IO board

For the start for my FYP, I chose a simple to use PIC with USB. This is the input/output board:
Photobucket
Photobucket

I have placed a jumper to select between the USB or regulator supply. Sad to say, I forgot about ICSP pins when designing it. The solution is to solder the pins via DIP pins at the back of the PCB board.
*IO Board :PCB Design

Iphone

My Iphone 2G, got it few months back...Having heard the news from apple, there is a 3G version coming this 11 July. I hope that they will be available soon in Singapore. Singnet do your job, we want Iphone in Singapore :D

Photobucket
Photobucket

btw dude, don't expect the same price US$199, my guess is about S$750++

Wednesday, July 2, 2008

PIC programmer (GTP-USB-Lite)

After researching online, there isn't much simple PIC programmer available. An average low-end PIC programmer will cost about US$50-100. I am not a rich student, so it is time for us to DIY. The first programmer I tried in 2003 was the JDM programmer for pic16f84, but JDM programmer doesn’t work with USB-Serial adaptor unless we supply additional voltage at MCLR.
Photobucket

My senior introduced me to GTP-programmer. Here Ali3nWorld

I added a additional MAX232 circuit so I can have serial communication with my PICs :D

The GTP-programmer uses a PIC18F2550 and a few transistors to flash other PICs. For more information please see ali3nworld blog spot.

PCB design:
Photobucket

GTP-USB-Lite Programmer:
Photobucket
Photobucket

*Programmer :PCB Design