Looking for microcontroller cheaper :)

Hi Folks,

Ii'm not experiece guy in eletronic .... sorry about that

I'm looking for a microcontroller cheaper for my final project..

I made tests using Attiny85, nice controller but quite expansive.

My program datas:

Sketch uses 2412 bytes (29%) of program storage space. Maximum is 8192 bytes.
Global variables use 19 bytes (3%) of dynamic memory, leaving 493 bytes for local variables. Maximum is 512 bytes.

Ports that i'm using at Attiny 85

*Runing at 8Mhz
*2x Analog port A3 and A4
*1x digital input
*2x digital output

  • powered by 3,7V - 18650 Battery

Aditional data using #include "tinysnore.h" for put uC to sleep mode save battery

Any suggestion for uC cheaper ?

If i can use arduino interface should be better

I'm anxious for hearing suggestions :slight_smile:

Have nice day!

  • Cheaper than what ? $ :thinking:
1 Like

How much are you paying for the Attiny 85 ?

Hi :slight_smile:

Cheaper maximum as possible hahahahahaa

I'm paying close to 2 Uss :confused:

How many of the processors does your project use ?

one for each PCB

How many PCBs and how much does each PCB cost and what other components are used ?

How is the PCB powered ?

In fact, what percentage of the cost of a single instance of your project, whatever it is, does 2 USD represent ?

it's a starter project from now few pcs but I would like to use cheaper controller looking to the future.

otherhan, I will develop my PCB, I would like to develep as well with final controller

Powered by 3,7V - 18650 battery

Out of interest, how much does the 18650 battery and a suitable charger cost ?

Can you see what I am getting at ?

1 Like

Yes I got it :slight_smile:

Close to 5uss not to much ...

Attiny if you look size means 2uss .... battery and charger 5uss

What currency are you working in ?

Bare chips can cost more than development boards if ordered in single units.
If you want arduino compatible chip, have a look at stm32c0 or attiny402

Interesting :slight_smile: I will investigate more

Maybe another type of attiny family should be option
Tkssssssss

In Brazil is called Reais .... today is 6 times less tha dollar

1uss = 6 reais :frowning: ...... :hot_face:

Did you look at WCH e.g. CH32v003 https://de.aliexpress.com/item/1005004895791296.html ?

1 Like

If you don't use voltage regulator, you need to find a chip that can run at 2.7-4.2V

Thanks. It was your use of uss and the currency specifier rather than the more normal USD that made me ask

Thank you guys for help me :slight_smile:

I really apreciatte it .... i will investigate ch32v003f4p6 right now :slight_smile: it's seens very interisting .. my circuit is really simples.

Keep controller at sleeping.

Receive a signal from IR receiver.

awake controller

wait timer 1

Turn on output

wait timer 2 keeping output high

Turn off

back sleep

ATtiny09.

US$0.72 per unit:
https://www.mouser.com/ProductDetail/Microchip-Technology/ATTINY9-MAHR?qs=lwdSMh1%2FoYLZt9Cg0MwMzw%3D%3D

Datasheet:
https://www.mouser.com/datasheet/2/268/8127_125-3445024.pdf

In use:

Just thinking differently :smiley:

Maybe a NE556 dual timer IC with some external components for the timing will do . Or a handful of discrete components (transistors, capacitors and resistors).

No design in mind.