Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

humidity sensor

humidity sensor

2006-03-30 by aila_alizadeh

hi everybody:
does anybody have information about humidity sensors with 2 pin ?
I just know that they act as a capacitor ,but I don't know how I 
should measure it ,and how I should do that with avr .
whould you mind sharing your experience about that with me ?
If you send me any useful information about measuring & calibrating 
these sensors and build a hygrometer ,I'll be very 

thankful.
Aila Hasanalizadeh

Re: [AVR-Chat] humidity sensor

2006-03-30 by Ned Konz

On Mar 30, 2006, at 1:48 AM, aila_alizadeh wrote:

> hi everybody:
> does anybody have information about humidity sensors with 2 pin ?
> I just know that they act as a capacitor ,but I don't know how I
> should measure it ,and how I should do that with avr .
> whould you mind sharing your experience about that with me ?
> If you send me any useful information about measuring & calibrating
> these sensors and build a hygrometer ,I'll be very

The best bet for measuring capacitive sensors is to use one of the  
capacitance-to-analog or capacitance-to-digital converters that are  
sold for that purpose.

QProx QT301
http://www.digikey.com/scripts/DkSearch/dksus.dll? 
KeywordSearch&Stock=1&Keywords=qt301

AD Capacitance to digital converters
http://www.analog.com/en/subCat/0,2879,760%255F1077%255F0%255F%255F0% 
255F,00.html

You can use other techniques (like for instance a CD4046 PLL) to  
measure the capacitance, and then use a counter to measure the  
resultant frequency.

Depending on the capacitance, you might also be able to do a really  
simple converter that charges the cap through a resistor (fed from a  
digital output pin) and then uses the analog comparator to detect  
when a threshold voltage has been reached. The time that the cap  
takes to charge to that level then gives you the capacitance.

I don't recommend using the schmitt trigger inputs for this, as their  
threshold is not necessarily too stable or predictable.

If you added an analog switch you could compare the unknown  
capacitance with a known reference; this helps cancel out  
microcontroller-based errors.

-- 
Ned Konz
ned@bike-nomad.com

Re: [AVR-Chat] humidity sensor

2006-03-30 by erikc

aila_alizadeh wrote:
> hi everybody:
> does anybody have information about humidity sensors with 2 pin ?
> I just know that they act as a capacitor ,but I don't know how I 
> should measure it ,and how I should do that with avr .
> whould you mind sharing your experience about that with me ?
> If you send me any useful information about measuring & calibrating 
> these sensors and build a hygrometer ,I'll be very 
> 
> thankful.
> Aila Hasanalizadeh

Go here:  http://www.linear.com/designtools/app_notes/index.jsp

Look for and download Application Notes AN3 and AN7.  Both appnotes 
show a humidity sensing and signal conditioning circuit.
AN3 figure 8 shows a circuit which delivers an analogue voltage, while 
AN7 figure 11 shows a circuit that delivers a variable frequency.


erikc
--
GILLETTE'S PRINCIPLE: "If you want to make people angry, lie. If
you want to make them absolutely livid with rage, tell the
truth."

Debug wire experiences

2006-03-30 by Don Ingram

Hi All,

Does anyone have any comments re experiences with debugwire on JTAGII.

I am specing a project at present which fits neatly with the Mega8 derivatives 
but am reluctant to leave the well trodden path with the Mega16 / JTAG family.

I see very little history of conversation re debugwire and have little desire to 
play pioneer ( the guy lying face down in the mud with the arrows in the back )

X-posted to chat & codevision.

Cheers

Don

Re: [AVR-Chat] Debug wire experiences

2006-03-31 by John Samperi

At 10:06 AM 31/03/2006, you wrote:
>X-posted to chat & codevision.

...and avrfreaks?? :-) many threads on JTAGICE 2 there.

Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495       Fax (02) 9674-8745
Email: john@ampertronics.com.au
Website  http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************

Re: [AVR-Chat] Debug wire experiences

2006-03-31 by Don Ingram

John Samperi wrote:
> At 10:06 AM 31/03/2006, you wrote:
>> X-posted to chat & codevision.
> 
> ...and avrfreaks?? :-) many threads on JTAGICE 2 there.
> 
> Regards
> 
> John Samperi
Lots on JTAGII in general, sod all on debugwire,
well, that I can find anyway ;-)


Don

Re: [AVR-Chat] Debug wire experiences

2006-03-31 by John Samperi

At 01:02 PM 31/03/2006, you wrote:
>Lots on JTAGII in general, sod all on debugwire,
>well, that I can find anyway ;-)

Well I'd be happy to test it for you....just send me one :-D

I'm still debugging with the old ICE200 which does pretty much
all I need to do by enabling the compatibility bits in the
8515 and 8535 chips. For the M8 I can use the 4433 settings
if my project does not need the extra ram or I use an 8535
setting with an adaptor cable and use the pins I need off
the 8535.

Got a JTAG ice mk1(homemade) for the Mega64. You should be able
to use the older JTAG with a larger chip to emulate the M48 or M88
(no DW on the Mega8 that I know of) if you don't want to be a
guinea pig with debug wire. I guess there would be much more
noise on avrfreaks if it didn't work....I'll wait until I cannot
do without untill I purchase one...by then all bugs will be sorted out
(if any) :-)


Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495       Fax (02) 9674-8745
Email: john@ampertronics.com.au
Website  http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************

Re: [AVR-Chat] Debug wire experiences

2006-03-31 by Peter Gargano

Don Ingram wrote:
> Does anyone have any comments re experiences with debugwire on JTAGII.

Don, I'd be very happy to hear about what you discover (in case your 
x-posts bear fruit).


Peter.

Re: humidity sensor

2006-03-31 by Joe

I have used a sht11. This will read temp and humidity and then u can 
calc Dew point. Serial data out. There is code on the Bascom site.
See:
http://www.sensirion.com/en/02_sensors/00_products.htm?cat=3&art=1

JoeT

PS
excuse me if this is posted twice.


--- In AVR-Chat@yahoogroups.com, "aila_alizadeh" <aila_alizadeh@...> 
wrote:
>
> hi everybody:
> does anybody have information about humidity sensors with 2 pin ?
> I just know that they act as a capacitor ,but I don't know how I 
> should measure it ,and how I should do that with avr .
> whould you mind sharing your experience about that with me ?
> If you send me any useful information about measuring & 
calibrating 
Show quoted textHide quoted text
> these sensors and build a hygrometer ,I'll be very 
> 
> thankful.
> Aila Hasanalizadeh
>

RE: [AVR-Chat] Re: humidity sensor

2006-03-31 by Shoaib Javed

Yeah, this sensor is a good choice if cost is not an issue.

Shoaib
Show quoted textHide quoted text
-----Original Message-----
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf
Of Joe
Sent: 31 March 2006 07:13
To: AVR-Chat@yahoogroups.com
Subject: [AVR-Chat] Re: humidity sensor

I have used a sht11. This will read temp and humidity and then u can 
calc Dew point. Serial data out. There is code on the Bascom site.
See:
http://www.sensirion.com/en/02_sensors/00_products.htm?cat=3&art=1

JoeT

PS
excuse me if this is posted twice.


--- In AVR-Chat@yahoogroups.com, "aila_alizadeh" <aila_alizadeh@...> 
wrote:
>
> hi everybody:
> does anybody have information about humidity sensors with 2 pin ?
> I just know that they act as a capacitor ,but I don't know how I 
> should measure it ,and how I should do that with avr .
> whould you mind sharing your experience about that with me ?
> If you send me any useful information about measuring & 
calibrating 
> these sensors and build a hygrometer ,I'll be very 
> 
> thankful.
> Aila Hasanalizadeh
>






 
Yahoo! Groups Links

Re: [AVR-Chat] Debug wire experiences

2006-03-31 by Ivan Vernot

HI Don,
I have used debug wire on a Tiny13.

It worked well enough (when I it worked) but I am a little disturbed that I 
have been locked out of a few micros when things go wrong.

FWIW here is how it worked for me
-  need to connect to regular ISP lines.
- AVRStudio is told to go into debug wire mode
- AVRStudio enter as 'special' ISP mode to set the debug wire fuse bits
- Alls well and debug wire works just like JTAG (cool)!

BUT
Before you exit you debug setting (and AVRStudio) you must remember to clear 
the debugwire fuse bit.
If you don't or AVRStudio crashes or AVRStudio reports that it could not set 
the debug wire fuse bit (as was my case) then you can get locked out of the 
micro and regular ISP no longer works nor does debug wire :-(

I don't want to appear too negative.as I have not had too much time to look 
into this as yet (and it is possible that I screwed up something).

I have been successfully developing with debug wire for a couple of week 
with no problems. Then, I need to (in a hurry) make a quick mod for a client 
and in a flurry of activity I managed to lock myself out of three devices in 
a row!!!!

I have not been able to investigate it further and it does concern me 
but )(as I said)  I was a very happy camper 'till then.
I am 'hoping' that I did something stupid in my rush.

HTH.

BTW: IF I'm not mistaken the mega 16 and the mega8 pin compatible? So you 
could use the mega16 in development (and use JTAG) and then when its all 
done recompile for a mega 8.

Cheers,

Ivan Vernot





----- Original Message ----- 
Show quoted textHide quoted text
From: "Don Ingram" <don@led.com.au>
To: <AVR-Chat@yahoogroups.com>; <codevisionavr@yahoogroups.com>
Sent: Friday, March 31, 2006 10:06 AM
Subject: [AVR-Chat] Debug wire experiences


> Hi All,
>
> Does anyone have any comments re experiences with debugwire on JTAGII.
>
> I am specing a project at present which fits neatly with the Mega8 
> derivatives
> but am reluctant to leave the well trodden path with the Mega16 / JTAG 
> family.
>
> I see very little history of conversation re debugwire and have little 
> desire to
> play pioneer ( the guy lying face down in the mud with the arrows in the 
> back )
>
> X-posted to chat & codevision.
>
> Cheers
>
> Don
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>

Re: [AVR-Chat] Debug wire experiences

2006-04-01 by Don Ingram

Mega16 is 44 pin, Mega8/Mega168 is 32 pin.

Local disti has reported a number of companies routinely using debugwire, he 
didn't mention the lockout issue although.

Given the need to have to use the SPI lines for programming anyway I am leaning 
toward the well trodden JTAG solution. I would like to use a much smaller device 
but feature creep has begun & Mega8 class is the minimum family so Mega16 is a 
short hop away & cost is not an issue...


Cheers

Don

Ivan Vernot wrote:
> HI Don,
> I have used debug wire on a Tiny13.
> 
> It worked well enough (when I it worked) but I am a little disturbed that I 
> have been locked out of a few micros when things go wrong.
> 
> FWIW here is how it worked for me
> -  need to connect to regular ISP lines.
> - AVRStudio is told to go into debug wire mode
> - AVRStudio enter as 'special' ISP mode to set the debug wire fuse bits
> - Alls well and debug wire works just like JTAG (cool)!
> 
> BUT
> Before you exit you debug setting (and AVRStudio) you must remember to clear 
> the debugwire fuse bit.
> If you don't or AVRStudio crashes or AVRStudio reports that it could not set 
> the debug wire fuse bit (as was my case) then you can get locked out of the 
> micro and regular ISP no longer works nor does debug wire :-(
> 
> I don't want to appear too negative.as I have not had too much time to look 
> into this as yet (and it is possible that I screwed up something).
> 
> I have been successfully developing with debug wire for a couple of week 
> with no problems. Then, I need to (in a hurry) make a quick mod for a client 
> and in a flurry of activity I managed to lock myself out of three devices in 
> a row!!!!
> 
> I have not been able to investigate it further and it does concern me 
> but )(as I said)  I was a very happy camper 'till then.
> I am 'hoping' that I did something stupid in my rush.
> 
> HTH.
> 
> BTW: IF I'm not mistaken the mega 16 and the mega8 pin compatible? So you 
> could use the mega16 in development (and use JTAG) and then when its all 
> done recompile for a mega 8.
> 
> Cheers,
> 
> Ivan Vernot
> 
> 
> 
> 
> 
> ----- Original Message ----- 
> From: "Don Ingram" <don@led.com.au>
> To: <AVR-Chat@yahoogroups.com>; <codevisionavr@yahoogroups.com>
> Sent: Friday, March 31, 2006 10:06 AM
> Subject: [AVR-Chat] Debug wire experiences
> 
> 
>> Hi All,
>>
>> Does anyone have any comments re experiences with debugwire on JTAGII.
>>
>> I am specing a project at present which fits neatly with the Mega8 
>> derivatives
>> but am reluctant to leave the well trodden path with the Mega16 / JTAG 
>> family.
>>
>> I see very little history of conversation re debugwire and have little 
>> desire to
>> play pioneer ( the guy lying face down in the mud with the arrows in the 
>> back )
>>
>> X-posted to chat & codevision.
>>
>> Cheers
>>
>> Don
>>
>>
>>
>> Yahoo! Groups Links
>>
>>
>>
>>
>>
>>
>>
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 


-- 
Cheers

Don Ingram


Leading Edge Design

Mob:   +61 4 1877 5670
Ph :   +61 7 4942 5670
SIP: 899 060 4942 5670

Fax:   +61 7 4942 5680

23 Daniel St
North Mackay
QLD 4740
Australia

P.O. Box 10326
Mt Pleasant
QLD 4740
Australia

Re: [AVR-Chat] Debug wire experiences

2006-04-01 by John Samperi

At 10:46 AM 1/04/2006, you wrote:
>IF I'm not mistaken the mega 16 and the mega8 pin compatible?

M168 (?) and M8 are pin compatible. M16 is a 40 pin (44 smd) device :-)
I'm sure you know that, a slip of the fingers? :-)


Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495       Fax (02) 9674-8745
Email: john@ampertronics.com.au
Website  http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************

Pin compatibility (was: Debug wire experiences)

2006-04-02 by Stefan Wimmer

--- In AVR-Chat@yahoogroups.com, John Samperi <samperi@...> wrote:
>
> M168 (?) and M8 are pin compatible.

...so are M48 and M88.

It's nice to be able to use a PCB for a whole series (M8, M48, M88, 
M168) of processors.

Scroll down to the last entry on this page for an example:
http://www.raketenmodellbau.org/forum?
action=viewthread&page=3&threadid=5566

supported devices

2006-04-19 by naveed mughal

i m doing final project on avrora, my task is to extend avrora. first i have to know that what devices are supported by avrora-beta-1.6.0...
i'll be very thankfull if u help ...
thanks Naveed

Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.

Re: [AVR-Chat] supported devices

2006-04-19 by Ned Konz

On Apr 19, 2006, at 4:04 AM, naveed mughal wrote:

> i m doing final project on avrora, my task is to extend avrora.  
> first i have to know that what devices are supported by avrora- 
> beta-1.6.0...
> i'll be very thankfull if u help ...

Didn't you believe the page on supported microcontrollers on the  
Avrora web site?

I found it by searching for
	avrora supported devices

http://compilers.cs.ucla.edu/avrora/extend/mcu.html

where they say:

---
A microcontroller in Avrora is a self-contained execution unit with  
program storage, RAM and internal devices that represents a complete  
execution unit to be simulated. A microcontroller may be connected to  
external devices such as LEDs, but these are not considered part of  
the microcontroller. For example, the ATMega128L contains 128KB  
Flash, 4KB EEPROM, 4KB SRAM, several timers, two UARTs, an SPI  
interface, etc.

Avrora allows you to add your own microcontroller model, for Atmel  
microcontrollers not yet supported or not yet build. By creating a  
new Java class that implements the Microcontroller interface, you can  
build a software model of the microcontroller in which your program  
will run. You can add the correct parameters for storage size,  
external pin assignments, and internal devices.

By specifying the -chip option to the simulator, you can select from  
one of the supported microcontrollers, or specify the fully qualified  
name of your own microcontroller class.
---

So the answers to your question are "the microcontrollers that are  
supported are represented by classes that implement the  
Microcontroller interface", and "you can make your own  
Microcontroller class if you need or want to".

Just look at the source code; the JavaDoc is online.

http://compilers.cs.ucla.edu/avrora/api/current/avrora/sim/mcu/ 
Microcontroller.html
http://compilers.cs.ucla.edu/avrora/api/current/avrora/sim/mcu/ 
AtmelMicrocontroller.html
http://compilers.cs.ucla.edu/avrora/api/current/avrora/sim/mcu/ 
ATMegaFamily.html
http://compilers.cs.ucla.edu/avrora/api/current/avrora/sim/mcu/ 
ATMega128.html
http://compilers.cs.ucla.edu/avrora/api/current/avrora/sim/mcu/ 
ATMega16.html
http://compilers.cs.ucla.edu/avrora/api/current/avrora/sim/mcu/ 
ATMega32.html


After all, you're going to have to read the source in order to extend  
Avrora, right?
-- 
Ned Konz
MetaMagix embedded consulting
MetaMagix@gmail.com

Re: [AVR-Chat] supported devices

2006-04-20 by naveed mughal

hello dears,
my project is to extend avrora, that i have to convert it completely in gui, i want to convert it like other digital or electronic simulator, for example just like "tkgate" in linux, "electronic workbench" and circuit maker. i 'll be very thank ful if someone will guide me in right direction, that how should i start it, how it will be possible for me.....

Mughal

Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2ยข/min or less.

AVRORA Errror how to solve it ...

2006-04-20 by naveed mughal

dear i m new user of avrora. when i started to use it every thing was right. i used it on fedora core 5. but after some time, from some i m reciveng an error. i change my plateform ftom fedora 5 to fedora 4, java versions but problem is still there. so what is this, and how to solve it .... Error is following....

*******************************************************************************************
[naveed@localhost avrora]$ java -jar avrora.jar blink.od
Avrora [Beta 1.6.0] - (c) 2003-2005 UCLA Compilers Group

This simulator and analysis tool is provided with absolutely no warranty,
either expressed or implied. It is provided to you with the hope that it be
useful for evaluation of and experimentation with microcontroller and sensor
network programs. For more information about the license that this software is
provided to you under, specify the "license" option.

Loading blink.od...avrora.syntax.objdump.ParseException: Encountered "" at line 25, column 14.
Was expecting:
...

at avrora.syntax.objdump.ObjDumpParser.generateParseException (ObjDumpParser.java:1687)
at avrora.syntax.objdump.ObjDumpParser.jj_consume_token (ObjDumpParser.java:1562)
at avrora.syntax.objdump.ObjDumpParser.Raw2 (ObjDumpParser.java:297)
at avrora.syntax.objdump.ObjDumpParser.RawData (ObjDumpParser.java:285)
at avrora.syntax.objdump.ObjDumpParser.Item (ObjDumpParser.java:150)
at avrora.syntax.objdump.ObjDumpParser.Statement (ObjDumpParser.java:136)
at avrora.syntax.objdump.ObjDumpParser.Section (ObjDumpParser.java:125)
at avrora.syntax.objdump.ObjDumpParser.Module (ObjDumpParser.java:46)
at avrora.syntax.objdump.ObjDumpProgramReader.read (ObjDumpProgramReader.java:83)
at avrora.Defaults$AutoProgramReader.read (Defaults.java:452)
at avrora.Main.loadProgram (Main.java:359)
at avrora.core.LoadableProgram.load (LoadableProgram.java:88)
at avrora.sim.types.SingleSimulation.process (SingleSimulation.java:172)
at avrora.actions.SimulateAction.run (SimulateAction.java:79)
at avrora.Main.runAction (Main.java:144)
at avrora.Main.main (Main.java:132)
***********************************************************************************************
Mughal

New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

Re: [AVR-Chat] AVRORA Errror how to solve it ...

2006-04-20 by Jim Wagner

You are not likely to get much help with avrora here. I've
never seen anybody refer to it on this list. Of course, you
are welcome to ask, but please don't be upset if nobody
answers! 

I have also never seen it referred to on the avrfreaks
list. There are a lot more folks there, however, so the
odds of finding someone might be a little better.

Jim
---------------------------------------------------------------
The Think Different Store
http://www.thinkdifferentstore.com/
For All Your Mac Gear
---------------------------------------------------------------

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.