ATMega48/88/168/328P Target Board (HCPROT0088 93 & 94)

DIY kits and starter bundles
Post Reply
admin
Site Admin
Posts: 727
Joined: Sun Aug 05, 2012 4:02 pm

ATMega48/88/168/328P Target Board (HCPROT0088 93 & 94)

Post by admin » Fri Mar 24, 2017 12:14 pm

Image
Above images shows completed ZIF Programming bundle with all components soldered. UASASP programmer shown in images is sold separately.




This prototyping/programming board is designed for use with the Atmel ATMega48P, ATMega168P, & ATmega328P microcontrollers. The board has a number of features including a 24x12 0.1" grid prototyping area specifically laid out to match the pin-out of these devices. Additional pads are also provided for optional components such as external crystal, reset button, LED, ICSP headers and these are all connected to the appropriate pads within the prototyping area. The 6 and 10 pin ICSP headers are compatible with most common ICSP programmers such as the USBASP (see HCDVBD0031) and USBTiny (HCARDU0002). For the prototyping and ZIF programming bundles all components are deliberately chosen to be through-hold for easy construction (components in these bundles will require soldering).

This board is available in 3 options:




Bare board (HCPROT0088)

Just the PCB, for use as a basic prototyping board where you can add your own components.


Image


Image . Image





Prototyping bundle (HCPROT0093)

PCB and all components required for prototyping - just add your own microcontroller. This bundle includes the following list of items:


ImageImage


Image

1x PCB
1x 28 Pin IC socket
1x 16MHz crystal
2x 22pF capacitors (for use with crystal)
2x 100nF capacitors
1x Reset switch
1x 10K pullup resistor
2x 680R current limiting resistors for optional LEDs
1x 3mm green (power) LED
1x 3mm red (programming) LED
1x BS170 transistor.
2x 5 pin SIL headers for 10 pin ICSP
2x 3 pin SIL headers for 6 pin ICSP






ZIF Programming bundle (HCPROT0093)

This bundle is a great low cost solution if you often need to program devices for use with other development boards. It includes a hard wearing 28 pin Zero Insertion Force (ZIF) socket that allows target devices to be quickly inserted and removed without exerting mechanical stress on the IC. This bundle includes the following list of items:


ImageImage


Image

1x PCB
1x 28 Pin ZIF IC socket
1x 10 pin IDC header
1x 6 pin IDC header
1x 16MHz crystal
2x 22pF capacitors (for use with crystal)
2x 100nF capacitors
1x Reset switch
1x 10K pullup resistor
2x 680R current limiting resistors for optional LEDs
1x 3mm green (power) LED
1x 3mm red (programming) LED
1x BS170 transistor



FAQ:

Trying to upload to the chip with the ZIF bundle gives the following error: An error occurred while uploading the sketch avrdude: ser_open(): can't open device "\\.\COM5": The system cannot find the file specified.

Programming a chip via the USBasp/Target board has to be done in a slightly different way to programming an Arduino board. As the the chip is blank it doesn't yet contain the Arduino bootloader (a program normally pre-installed into an Arduino that allows it to accept sketches via it's serial port) and as a result you can't upload a sketch via it's serial interface.

To program the ATMega device using the programming bundle you'll first need to tell it which type of external programmer you have. In the menu at the top of the Arduino window go to:

Tools->Programmer

You will then see a list of external programmers. For the USBasp simply select 'USBasp'

Next, as normal, you will need to set the board type:

Tools->Board

This will tell the Arduino IDE what version of bootloader you wish to program into the the device and for what type of device to compile your sketch for. For this you must choose an Arduino board that has the same type of device you're attempting to program. E.g. for an ATMega328 you could choose, Uno, Nano, Pro Mini, etc. If you are just wanting to program the device to use in your own project then I would recommend selecting 'Nano' as the board type and 'ATMega328p' as the processor.

The IDE is now set up and you now have the option of either uploading the Bootloader *OR* your sketch to the device:

To upload the bootloader:

Simply select Tools->Burn bootloader. This will burn the bootloader for whatever board type you have selected. Note that burning the bootloader is only necessary if you are programming the chip to replace a device in an existing Arduino board, or you'll be using the device in you're own project but want the option of uploading sketches via it's serial interface.


To upload a sketch:

Hold down the shift key on your keyboard and then click the upload button (round green icon with right pointing arrow found in the top left corner of the IDE) as normal. Notice as you hover over this button the IDE now says 'Upload using programmer' whilst the shift key is held down. The Arduino IDE should now upload the sketch via the programmer.




Image
ATMega48_88_168_328P_Target_Board_Schematic.pdf

Libraries, example code, and diagrams are provided as an additional free service by Hobby Components and are not sold as part of this product. We do not provide any guarantees or warranties as to their accuracy or fitness for purpose.

Descriptions and diagrams on this page are copyright Hobby Components Ltd and may not be reproduced without permission.
You do not have the required permissions to view the files attached to this post.

hmjswt
Posts: 5
Joined: Tue Nov 14, 2017 1:34 pm

Re: ATMega48/88/168/328P Target Board (HCPROT0088 93 & 94)

Post by hmjswt » Sun Aug 19, 2018 12:22 pm

Hallo,

I have a question: is AREF connected to Vcc or can I connect my own Vref.

Henk Siewert

andrew
Site Admin
Posts: 826
Joined: Sun Aug 05, 2012 4:15 pm

Re: ATMega48/88/168/328P Target Board (HCPROT0088 93 & 94)

Post by andrew » Sun Aug 19, 2018 7:10 pm

AREF isn't tied to VCC so you can connect it to your own reference voltage.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

hmjswt
Posts: 5
Joined: Tue Nov 14, 2017 1:34 pm

Re: ATMega48/88/168/328P Target Board (HCPROT0088 93 & 94)

Post by hmjswt » Mon Aug 20, 2018 10:06 am

Hallo,

Another question: Why is there a FET and a LED on SCKL?

Henk Siewert

andrew
Site Admin
Posts: 826
Joined: Sun Aug 05, 2012 4:15 pm

Re: ATMega48/88/168/328P Target Board (HCPROT0088 93 & 94)

Post by andrew » Mon Aug 20, 2018 2:35 pm

If used as an Arduino this pin would be digital pin 13 which normally has an LED connected to it.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

hmjswt
Posts: 5
Joined: Tue Nov 14, 2017 1:34 pm

Re: ATMega48/88/168/328P Target Board (HCPROT0088 93 & 94)

Post by hmjswt » Mon Aug 20, 2018 5:10 pm

andrew wrote:
Mon Aug 20, 2018 2:35 pm
If used as an Arduino this pin would be digital pin 13 which normally has an LED connected to it.
OK, but normally a resistor is enough.
Why an extra FET?
Or is it better to use a resistor and a FET ( or an 2N2222 )?

Henk Siewert

andrew
Site Admin
Posts: 826
Joined: Sun Aug 05, 2012 4:15 pm

Re: ATMega48/88/168/328P Target Board (HCPROT0088 93 & 94)

Post by andrew » Mon Aug 20, 2018 6:55 pm

The loading effect caused by just using an LED and resistor can cause problems with some types of ICSP programmers (which of course also use this pin for the clock signal). This would be a particular issue for this board as it's designed to be used with this type of programmer.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

hmjswt
Posts: 5
Joined: Tue Nov 14, 2017 1:34 pm

Re: ATMega48/88/168/328P Target Board (HCPROT0088 93 & 94)

Post by hmjswt » Tue Aug 21, 2018 6:41 am

Hallo,

Thank you for your answers.
This is a very nice board to build your own Arduino.

Henk Siewert

Post Reply