FreeLance Needed - ATTiny 24A, 3 logic and 1 analog I/O..

Go To Last Post
14 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Need a program in C, should be simple for person who knows what he is doing ... 

 

a)  1 analog  input to read voltage
b)  1 logic input for selecting mode
c)  1 logic output  for thermistor network
d)  1 logic output (sound)

 

Reset on power OFF/ON with beep when back to ON... 

Device is powered from single button cell (3V), main requirement is current draw around 1uA (Power down Mode, 80-95% of the time, wake up on change @ a) ) and low battery... 

Low battery indication (audio)...

 

Of course, this will be a contract... 

Last Edited: Thu. Jul 23, 2015 - 07:19 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Please elaborate on...

c)  1 logic output  for thermistor network

A thermistor is a sensor for measuring temperature whose resistance changes with temperature according to particular constants. It is more normal to connect a thermistor to an input rather than your stated output.

 

Is this a school assignment? More information is needed to suggest a solution.

 

Ross McKenzie, Melbourne Australia

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Abberon wrote:
a)  1 analog  input to read voltage

.

.

.

wake up on change @ a) )

How do you propose to wake up on a change in analog voltage?  An AVR alone cannot do this.

 

Abberon wrote:
main requirement is current draw around 1uA (Power down Mode, 80-95% of the time, wake up on change @ a) ) and low battery...
1 uA will be exceedingly hard to do with only an AVR.  The ATtiny24A lacks the ability to clock a timer with a watch crystal.  There are AVR which can do so (48/88/168/328 for example), and can get down to 0.75 uA in sleep mode (in theory).  The 24A would need another wakeup source.  The best is likely to be the WDT at 4 uA.

 

But that doesn't include draw while awake.  You will need to wake up to perform take an ADC sample, and that will take orders of magnitude more power than sleeping, even if you wake only infrequently.

 

You'll need to give more details about what you're trying to accomplish, not how you want to accomplish it.

"Experience is what enables you to recognise a mistake the second time you make it."

"Good judgement comes from experience.  Experience comes from bad judgement."

"Wisdom is always wont to arrive late, and to be a little approximate on first possession."

"When you hear hoofbeats, think horses, not unicorns."

"Fast.  Cheap.  Good.  Pick two."

"We see a lot of arses on handlebars around here." - [J Ekdahl]

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Consultants (as I am) start with What, now How!

Example: I need the device to do A, B, C, D every y amount of time. And run on a battery for X days/hours. And fit in an enclosure of this size. And tolerate environment of xxx.

and so on.

 

Functional requirements.

 

Last Edited: Sun. Jun 28, 2015 - 06:35 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Apart from the technical details, 

 

Abberon wrote:
this will be a contract...

Where are you located?

 

What is your budget?

 

How do you propose to pay?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am attaching a file with chart diagram and  better explanation of the functions and I/O... My thought was, that if thermistor is powered by output, I just eliminate current going continuously through the device and additional resistor (divider)... That alone is 19uA on 3VDC power... If this is done in intervals 1sec. every 15 sec., the consumption will go down significantly...  

 

I am in US, (SouthEast)...

 

Yes, there is a modest budget... :o)

 

PayPal perhaps?

 

         Thanks for all replies...

                          

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Got any programmers working with you yet? 'SouthEast' might be near me, compared to the other 3 quadrants.

 

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes he does

 

I am waiting on parts from Digikey to build a prototype.  Code is done.

 

Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

FooFoo. I got all excited and started looking at the flowchart, and the very first problem was a tiny24 didnt have a porta. Did you point that out Jim? Did he post a revised spec?

 

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

...and the very first problem was a tiny24 didnt have a porta. Did you point that out Jim?

IT dosen't?

 

 

JIm

 

EDIT:

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

Last Edited: Thu. Jul 23, 2015 - 12:07 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Doh! I was looking at a 25. "Never Mind"

 

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

OK jgmdesign

you too have make the code. 

I have send him ,code and new schematic some can use less current than he was thinking.

I have tested on my prototype (and work) and he answer at my code do not work with him....

 

 

OK if you continuous with him, good luck.

Thierry

Thierry Pottier

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thierry,

PM sent.  Was not aware of a few things.

 

JIm

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It seems that The OP may have double booked two Freaks.

 

In all fairness to Thierry, I am going to have a talk with the client and make sure he is compensated for his work.

 

I am also locking this thread as there seems to be nothing more that needs to be said.

 

Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

Topic locked