OpenXsensor on ATTiny ?

Development & General Chat for the superb openxvario project.

Moderator: rainer

Post Reply
Billy60
Posts: 39
Joined: Sun May 26, 2019 8:09 am
Country: -

OpenXsensor on ATTiny ?

Post by Billy60 » Fri Dec 17, 2021 11:13 am

Good morning,
Would the OpenXsensor skech work on an AtTiny ?
memory capacity and so on ?
Thanks !


User avatar
MikeB
9x Developer
Posts: 17619
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: OpenXsensor on ATTiny ?

Post by MikeB » Mon Dec 20, 2021 9:17 pm

Which ATTiny are you considering?
My, relatively simple, build for the OXS uses about 13K of flash and over 1K (+stack space) of RAM ?
Also, be aware that you will need to use a crystal oscillator to guarantee the serial baud rate is sufficiently accurate.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
jhsa
Posts: 19463
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: OpenXsensor on ATTiny ?

Post by jhsa » Sat Dec 25, 2021 4:01 pm

This is an interesting idea, specially for simple sensors :)
Mike,Would a resonator be accurate enough?
What about an ATtiny85? I know serial could be done via software serial, but would it work with the oXs code without modifying it??

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

User avatar
kalle123
Posts: 890
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: OpenXsensor on ATTiny ?

Post by kalle123 » Sat Dec 25, 2021 6:39 pm

jhsa wrote:
Sat Dec 25, 2021 4:01 pm
... but would it work with the oXs code without modifying it??
João,

you are V E R Y optimistic :lol:

KH

User avatar
MikeB
9x Developer
Posts: 17619
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: OpenXsensor on ATTiny ?

Post by MikeB » Sat Dec 25, 2021 7:51 pm

The main limitation is the amount of RAM, followed by the amount of flash. The OxS code will almost certainly need modifying to work.

MIke
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!


User avatar
jhsa
Posts: 19463
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: OpenXsensor on ATTiny ?

Post by jhsa » Sun Dec 26, 2021 11:06 pm

I guess my question was a bit stupid. I was only focused on the frequency being stable, and completely forgot the flash and RAM sizes :P Sorry about that.. :mrgreen:

But Kalle123, yeah, I have always been optimistic.. :mrgreen:

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW


Post Reply

Return to “OpenXVario - an open source vario supported by the open source firmwares!!”