Go Down

Topic: Buying external microcontroller to program via Arduino PLEASE ANSWER ASAP (Read 915 times) previous topic - next topic

JMD1

Hello guys, today i am writing here to receive suggestions for a microchip that i would like to buy and program via Arduino Uno v3, here i'll post the link to the eBay product:


http://www.ebay.com/itm/2PCS-AT89S52-24PU-AT89S52-DIP-40-ATMEL-Microcontroller-CHIP-IC-BEST-/272248783059?hash=item3f634ac0d3:g:X5cAAOSw-0xYWQSn


Here is the ATMEL explanation of the chip:


http://www.atmel.com/Images/doc1919.pdf


I am wondering if i buy those microchips would i be able to program them via my Arduino board and should i buy them?
Please leave a reply.

P.S.  I want to buy this things so i can, lets say, upload Blink example to the chip, then disconnect it from the board, place it on breadboard and it blinks a LED. The  8k programmable memory is OK for me, i will upload sketches no more than 3k.

Oh, and also, if this microcontroller is not suitable to be programmed via Arduino Uno v3 please suggest any other CHEAP microchip that i can buy.

westfw

The AT89S52 is not an AVR chip, so you cannot program it with the Arduino environment.
There is some slight chance that you could program it using the Arduino as ISP sketch (or some minor variant), but that would only be relevant AFTER you generated a .hex file using some completely different environment other than Arduino.

If you're looking for a 40pin chip that IS compatible with Arduino, you can try a search for "ATmega32a" - they also show up on eBay for very low prices.  See https://github.com/MCUdude/MightyCore for other possibilities.


ricky101

All you need to do is buy a genuine Ardunio Uno ( or clone)  that comes with a DIP type of 328 chip.

You can program it up as normal in the Uno, then remove the chip and run it on a breadboard.

You can buy spare 328 DIP chips with the bootloader already programmed in.

Note that when running the 328 on a breadboard your will also need to fit the other parts need to make it run like a 5v power supply, a 16mhz crystal and resistor, and a reset circuit pull up resistor.


Have to ask, as someone new to Arduino, why are you so eager to have it running off the Uno board ?

If you want something smaller, then look at the Nano and Micro boards , they have virtually the same parts , just smaller, and probably cheaper than making it up on a breadboard /your own pcb.

JMD1

My arduino has ATmega328P which gets in its socket. To ricky101:
I want to do BT controllable car with 4 motors (i still dont have H-bridge but i am looking for some) and i dont want to place the whole arduino uno board on the car's undercarriage but a little microchip with a small breadboard and a 10-15 wires. Thats why i need external brain to control my car :)

DrAzzy

Consider whether a simple pro mini would work as an alternative.

If you need more pins than that, get an atmega x4 series (1284/644/324) and use hansibul's mightycore board def package to add support to the IDE - those are 40-pin packages, 31 usable IO pins, and 2 serial ports, and the core is well maintained and well exercised (the 1284p is pretty popular among AVR geeks)
ATTinyCore for x4/x5/x61/x7/x8/x41/1634/828/x313 megaTinyCore for the megaavr ATtinies - Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

JMD1

Thank you, i just bought Arduino Nano v3.0 with ATmega328P and 16MHz oscillator for less than $3. I think it will do perfect job to me as i will need either 2 or 4 pins.
BTW can i program an Arduino board to be H-bridge?

ricky101

The Ardunio can only produce the controlling signals for a H bridge, it does not have the current handling abilities on its own.

There are several chips you can use or discrete components, the first thing you need to establish is what voltage and maximum current the bridge has to handle ?
That will determine what you can use and how small it can be.

JMD1

Up to 5V for every one of 4 pins, (max 9V but i have voltage amplifier), i just want to make that when lets say pin 8 ouput mode is HIGH the motor rotates clockwise, but when pin 12 output mode is HIGH and pin 8 LOW the motor to rotate counterclockwise. That means that the negative should be disabled at the side that pin 12 provides electricity and enabled on the other pin and inverted- when pin 8 is ON, the negative be enabled at the motor cathode when usually pin 12 gives power. Just a normal H-bridge with an output of 5V and a small current that an Arduino usually provides, nothing more.

DrAzzy

What do you mean by a "voltage amplifier"? Presumably you mean a boost converter, since that's the only thing that would make sense there - but the H-bridge needs to be *after* any buck/boost converters - reversing the polarity of the input to a buck or boost converter will damage it and/or the power source.

What is the maximum current?
ATTinyCore for x4/x5/x61/x7/x8/x41/1634/828/x313 megaTinyCore for the megaavr ATtinies - Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

ricky101

Not quiet sure what you are meaning, though perhaps this chip is all your need ?

http://www.hobbytronics.co.uk/h-bridge-driver-sn754410

Go Up