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.

Migrating from Arduino to Atmel?

Status
Not open for further replies.

MikeMl

Well-Known Member
Most Helpful Member
I have a small sketch running on a mini. Also runs on an UNO, which I also have. I only need crude timing, and a couple of port pins (outputs), nothing else.

I'm trying to make it smaller, and use less power. Is there a way to move this to an 8pin Atmel chip? I do not have an Atmel development system...
 
Mike:

I wan't say yes or no, but I will suggest a site to look at: https://mbed.org/platforms/

Because I guess you want something C-like with little or no development costs.

The mbed platform is all web and it supports various processors. I think you will end up with lots of choices.

For another possibility, the Motorola MSP430 can be made exceeding power stingy.
 
Mike:

I wan't say yes or no, but I will suggest a site to look at: https://mbed.org/platforms/

Because I guess you want something C-like with little or no development costs.

The mbed platform is all web and it supports various processors. I think you will end up with lots of choices.

For another possibility, the Motorola MSP430 can be made exceeding power stingy.

I was hoping not to have to rewrite the code, so that is why I am looking for the migration...
I wrote code for the TI MSP430, but unfortunately I had to leave the development system for behind when I retired...
 
Woops, just answered this over at AAC, but I'll copy it here as well for others who see this thread:

You can very easily turn your Uno into a programmer for an Attiny. Here's an instructable for it: https://www.instructables.com/id/How-...g-arduino-uno/

Or, if you prefer: https://highlowtech.org/?p=1706

The ATtiny45 and 85 are both 8-pin DIP devices that should suit your needs.

As for writing the actual code for them, perhaps this tutorial will be of use: https://highlowtech.org/?p=1695

Hope this helps!
Regards,
Matt
 
Thanks Matt, that should do it...
 
Mike you have the tools to write code for a Atmel chip all the arduino is a simple way to use there compiler winAVR its on your computer
This looks like a good place to start https://www.wikihow.com/Write-Arduino-Software-in-C

There's even how to use the Arduino ide with 8 pin chips and load the code without the bootloader
I have to find it
 
Remember the Arduino isn't C and the Arduino development environment doesn't let you get intimate with the processor. The Sketch environment doesn't care about power management.

The "sketch" environment is pure C. There are some scripts, libraries and macros that try to hide some details of C language, but the compiler is avr-gcc. The environment does not care about anything, but it does let you do everything. The libraries try to hide many details and make things easier for beginner. But if you want to write some settings to some register, you can do that.. you can do inline assembly if you want... the "sketch" environment does not limit your freedom. It only gives the illusion that you have no freedom.
 
Last edited:
Woops, just answered this over at AAC, but I'll copy it here as well for others who see this thread:

You can very easily turn your Uno into a programmer for an Attiny. Here's an instructable for it: https://www.instructables.com/id/How-...g-arduino-uno/

Or, if you prefer: https://highlowtech.org/?p=1706

The ATtiny45 and 85 are both 8-pin DIP devices that should suit your needs.

As for writing the actual code for them, perhaps this tutorial will be of use: https://highlowtech.org/?p=1695

Hope this helps!
Regards,
Matt
Very cool.

How'd you know I was wondering about this?...:banghead:
 
Arduino is like a ide that hides the hardware you just pick what your using and code but that don't mean you cant do more cause you can.
Clone chips program chips lots more.
The misconception comes from there forum more then any where there not a out of the box type over there so you get a lot of you cant do that cause we don't which is ok for a hobby but not if you want more so you got read a lot to find the stuff to think out the box. But the guys that write did a great job start here
Language Reference https://arduino.cc/en/Reference/HomePage
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top