Yahoo Groups archive

AVR-Chat

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

Messages

Browse messages

Page 64 of 307 · 15341 messages matched

Re: [AVR-Chat] Liquid level measurement

2009-01-14 by Zack Widup

Naah, that's too easy! :-) Zack On 1/13/09, Alex Shepherd wrote: > > > An ATMEGA48 would do the level measurement with four ADCs. > > > > Comments, please. > > What about weighing them? > > > [Non-text portions of this message have been removed]

Thread view Attachments: 0

Re: [AVR-Chat] Liquid level measurement

2009-01-14 by Tim McDonough

Enki wrote: > I need to measure the liquid level inside a transparent plastic > bottle. I need to know when the liquid is below half bottle height and > when the bottle is almost empty. Just two steps. > The plastic bottle measures 12cm high x 8cm x 3cm. > I'm not allowed to inse

Thread view Attachments: 0

Re: [AVR-Chat] Liquid level measurement

2009-01-14 by Rick B.

Alex and the other guy who both said weigh them were correct. Weigh them. M5 --- On Tue, 1/13/09, Enki wrote: From: Enki Subject: [AVR-Chat] Liquid level measurement To: AVR-Chat@yahoogroups.com Date: Tuesday, January 13, 2009, 8:43 PM I need to measure the liquid level inside a

Thread view Attachments: 0

Re: [AVR-Chat] Liquid level measurement

2009-01-14 by Tim Gilbert

Most windshield rain sensors use the index of refraction principle; however, the difference between "full" and "just wet" isn't very much. Tim Gilbert JEM Innovation Inc. 303-926-9053 (office) 303-437-4342 (cell) 720-890-8582 (fax) www.jeminnovation.com www.pdksolutions.com -----

Thread view Attachments: 0

RE: [AVR-Chat] Liquid level measurement

2009-01-14 by Robert Tilden

Perhaps an IR reflection sensor on the outside. There may be enough of a difference in index of refraction between air and liquid on the inside that there will be a reflection from the air/plastic interface when empty and no reflection when full. If you can use separate emitters/

Thread view Attachments: 0

RE: [AVR-Chat] Liquid level measurement

2009-01-14 by Mat Tubb

You can also use a set of scales to measure the weight were practical. regards Mat Tubb Airship Solutions Pty Ltd http://www.airship.com.au/ Ph: 1300 791 068 Mb: 0415 150 414 -----Original Message----- From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf Of

Thread view Attachments: 0

Re: [AVR-Chat] Liquid level measurement

2009-01-14 by Philippe Habib

Another option might be a pressure transducer on the bottom of the bottle or an ultrasound device bouncing off the water. On Jan 13, 2009, at 6:24 PM, Tim Gilbert wrote: > Are the bottles transparent? If so, you could use a laser and photo > diodes; the wavelengths absorbed could

Thread view Attachments: 0

Re: [AVR-Chat] Liquid level measurement

2009-01-14 by Philippe Habib

I have used sensors from SIE Sensorik to read liquid level through a plastic wall. They are easy to use, can be calibrated for sensitivity and are very reliable. On Jan 13, 2009, at 5:43 PM, Enki wrote: > > I need to measure the liquid level inside a transparent plastic > bottle.

Thread view Attachments: 0

Re: [AVR-Chat] Liquid level measurement

2009-01-14 by Tim Gilbert

Are the bottles transparent? If so, you could use a laser and photo diodes; the wavelengths absorbed could even tell you what was in the bottle. Regards, Tim Gilbert JEM Innovation Inc. 303-926-9053 (office) 303-437-4342 (cell) 720-890-8582 (fax) www.jeminnovation.com www.pdksolu

Thread view Attachments: 0

Re: [AVR-Chat] Liquid level measurement

2009-01-14 by Ken Holt

I have used capacitive sensing successfully on a 4' high fiberglass tank, measuring the height of the water inside to within and inch. I used only one metal plate; the water inside was a good enough ground plate. Enki wrote: > > > I need to measure the liquid level inside a trans

Thread view Attachments: 0

Liquid level measurement

2009-01-14 by Enki

I need to measure the liquid level inside a transparent plastic bottle. I need to know when the liquid is below half bottle height and when the bottle is almost empty. Just two steps. The plastic bottle measures 12cm high x 8cm x 3cm. I'm not allowed to insert any probe in the bo

Thread view Attachments: 0

Re: [AVR-Chat] lcd4*???

2009-01-13 by Mike Bronosky

Somewhere in AVR-land I have seen scroll functions using 4x40 LCDs. Reference to that is probably on AVRFreaks. With that you could use several pushbutton switches to scroll to-top or to-bottom, 1-up or 1-down, 2-up or 2-down and so forth. Good luck, Mike [Non-text portions of th

Thread view Attachments: 0

Re: [AVR-Chat] lcd4*???

2009-01-13 by dlc

sciboy_2003 wrote: > hi there ... > i'm working on designing a data logger for my project. > i wanna use a lcd so that i'll be able to show the adc results on it, > but there is only 4*40 chars./line in codewizard AVR. > what's all the available formats for lcd that lcd.h functio

Thread view Attachments: 0

Re: [AVR-Chat] Re: Arrays and pointers in GCC

2009-01-12 by dlc

Don Kinzer wrote: > --- In AVR-Chat@yahoogroups.com, "subscriptions@..." > wrote: >> I always do the interrupt prologue and epilogue in ASM. >> I don't trust interrupt keywords. :) > I have adopted the strategy of "trust but verify". It is a simple > matter to take a quick look a

Thread view Attachments: 0

Re: Arrays and pointers in GCC

2009-01-12 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, dlc wrote: > The C is not interspersed. How do I get this enabled in > the compiler? You may not be using the right set of compiler options. Clearly, debugging information must be embedded in the .elf file to allow avr- objdump to produce the list

Thread view Attachments: 0

RE: [AVR-Chat] JTAGICEmkII connector

2009-01-12 by Julian Higginson

You are looking for a keyed shrouded header, 0.1" pitch. Though of course with things like board connectors, the devil is in the details. If you don't have the make and model number of the mating part, you really need to SEE all the available connectors to get the right part. I r

Thread view Attachments: 0

Re: [AVR-Chat] JTAGICEmkII connector

2009-01-12 by Philippe Habib

I know the stuff you want is available from DigiKey because a tech got me just what you need from there a few months ago. sorry but I don't have the actual part numbers to give you. On Jan 12, 2009, at 2:01 PM, Steven Hodge wrote: > I just finished successfully switching over fro

Thread view Attachments: 0

JTAGICEmkII connector

2009-01-12 by Steven Hodge

I just finished successfully switching over from ISP programming a board to JTAG programming of it (I built both connectors into it). It took a bit of bashing of AVR Studio to get it to work, but so it goes. Anyway, to form the physical connection from the JTAGICEmkII I had to us

Thread view Attachments: 0

Re: [AVR-Chat] Re: Arrays and pointers in GCC

2009-01-12 by subscriptions@aeolusdevelopment.com

David VanHorn Wrote: >Eventually I see myself writing most of the app in C, and then writing >ISRs and maybe low level drivers and time-critical code in ASM. That's the way to go IMO. I will do ISR bodies in C at least sometimes but I always do the interrupt prologue and epilogue

Thread view Attachments: 0

Re: [AVR-Chat] Re: Arrays and pointers in GCC

2009-01-12 by David VanHorn

> I suspect that the general consensus is that if you have a need for > an extremely efficient ISR (or any function for that matter), you > can always code it completely in assembly language. I have done > this from time to time. Using mixed C and assembly language gives > you th

Thread view Attachments: 0

Re: Arrays and pointers in GCC

2009-01-12 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, "subscriptions@..." wrote: > I always do the interrupt prologue and epilogue in ASM. > I don't trust interrupt keywords. :) I have adopted the strategy of "trust but verify". It is a simple matter to take a quick look at the assembly language code

Thread view Attachments: 0

Re: [AVR-Chat] Re: Arrays and pointers in GCC

2009-01-12 by David VanHorn

> * r1 always has the value zero > * A function can freely modify r0, BUT!..... > Moreover, an ISR must preserve all register values and cannot rely on > r1 being zero. Maybe I'm missing something here, but what's the point of "almost always having 0 in R1" In ASM, I allocate a r

Thread view Attachments: 0

Re: [AVR-Chat] Arrays and pointers in GCC

2009-01-12 by Raymond Hurst

If you use something other than an int as an index then cast it to an int. Ray David VanHorn wrote: > > > Is there a reason that I can't use a char as a pointer in an array of ints? > My ADC experiment has an array of 8 ints to store the data, and it > does grind my gears to use

Thread view Attachments: 0

Re: [AVR-Chat] Arrays and pointers in GCC

2009-01-12 by subscriptions@aeolusdevelopment.com

David VanHorn wrote >On Mon, Jan 12, 2009 at 11:46 AM, subscriptions@aeolusdevelopment.com > wrote: >> David VanHorn Wrote >>>> Right terms, think of bit fields. >>> >>>Cool, I haven't read about bit fields yet. >> >> Just don't use them to define I/O. That way lies perdition ;)

Thread view Attachments: 0

Re: [AVR-Chat] Arrays and pointers in GCC

2009-01-12 by dlc

David VanHorn wrote: > On Mon, Jan 12, 2009 at 11:46 AM, subscriptions@aeolusdevelopment.com > wrote: >> David VanHorn Wrote >>>> Right terms, think of bit fields. >>> Cool, I haven't read about bit fields yet. >> Just don't use them to define I/O. That way lies perdition ;) > >

Thread view Attachments: 0

Re: Arrays and pointers in GCC

2009-01-12 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, "David VanHorn" wrote: > Maybe I'm missing something here, but what's the point of "almost > always having 0 in R1" In a word, history. The avr-gcc register assumptions were defined before the advent of the AVR MUL instruction which produces its r

Thread view Attachments: 0

Re: [AVR-Chat] Arrays and pointers in GCC

2009-01-12 by David VanHorn

On Mon, Jan 12, 2009 at 11:46 AM, subscriptions@aeolusdevelopment.com wrote: > David VanHorn Wrote >>> Right terms, think of bit fields. >> >>Cool, I haven't read about bit fields yet. > > Just don't use them to define I/O. That way lies perdition ;) hmm.. Do you have an example?

Thread view Attachments: 0

Re: [AVR-Chat] Arrays and pointers in GCC

2009-01-12 by subscriptions@aeolusdevelopment.com

David VanHorn Wrote >> Right terms, think of bit fields. > >Cool, I haven't read about bit fields yet. Just don't use them to define I/O. That way lies perdition ;) Robert -------------------------------------------------------------------- mail2web.com - Microsoft® Exchange solu

Thread view Attachments: 0

Re: [AVR-Chat] Arrays and pointers in GCC

2009-01-12 by David VanHorn

> Right terms, think of bit fields. Cool, I haven't read about bit fields yet. > Key questions, > does GCC allow unsigned char in this context? It's a common extension. > does GCC allocate a single byte in this context? I guess I'll find out.

Thread view Attachments: 0

Re: [AVR-Chat] Arrays and pointers in GCC

2009-01-12 by subscriptions@aeolusdevelopment.com

Original Message: ----------------- David VanHorn wrote >> I share your pain when you look at what the compiler's done, compared to >> how you can do it in asm. You just have to breathe deeply and let it go. >> If you're really strapped for execution time, you can write bits of i

Thread view Attachments: 0

Re: [AVR-Chat] Arrays and pointers in GCC

2009-01-12 by David VanHorn

> Hi Dave, first it's not a pointer you are using in your code... It's an > index into the array. A pointer is an address of something, like you'd > use xh:xl for in asm. You need 16 bits for a pointer as it can address > the whole of the memory. Sorry, said pointer, meant index.

Thread view Attachments: 0

RE: [AVR-Chat] Arrays and pointers in GCC

2009-01-12 by subscriptions@aeolusdevelopment.com

David VanHorn Wrote >Is there a reason that I can't use a char as a pointer in an array of ints? >Started with this code: Change ADC_Pointer declaration to unsigned char ADC_Pointer; Also I'd call it ADC_Index so no one thinks it is actually a pointer >// Reads all 8 channels eve

Thread view Attachments: 0

Re: Arrays and pointers in GCC

2009-01-12 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, "David VanHorn" wrote: > Normally in any app I write in ASM, I dedicate two > registers for usage in the ISR, ITEMP and ITEMP2, > and one to hold SREG, "STEMP" That is a perfectly reasonable (partial) set of register allocation assumptions for a s

Thread view Attachments: 0

Re: [AVR-Chat] Arrays and pointers in GCC

2009-01-12 by Bill Knight

David I do not have an AVR compiler accessible to me right now but please let me offer an alternative piece of code. Also, I did not see your declaration of 'ADC_Pointer' which is actually an index, not a pointer. unsigned char ADC_index; ISR(ADC_vect) { ADC_Data[ADC_index] = ADC

Thread view Attachments: 0

Arrays and pointers in GCC

2009-01-12 by David VanHorn

Is there a reason that I can't use a char as a pointer in an array of ints? My ADC experiment has an array of 8 ints to store the data, and it does grind my gears to use a 16 bit pointer into an 8 element array. In ASM, I'd only use three bits of a byte, saving the other five for

Thread view Attachments: 0

Re: Arrays and pointers in GCC

2009-01-12 by mikehg_67

--- In AVR-Chat@yahoogroups.com, "David VanHorn" wrote: > > Is there a reason that I can't use a char as a pointer in an array of ints? An actual pointer you can't but it looks like the pointer you're referring to is just an index so yes you can use a char but most compilers are

Thread view Attachments: 0

RE: [AVR-Chat] Arrays and pointers in GCC

2009-01-12 by Tim Mitchell

----Original Message---- From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf Of David VanHorn Sent: 12 January 2009 15:32 To: AVR-Chat@yahoogroups.com Subject: [AVR-Chat] Arrays and pointers in GCC > Is there a reason that I can't use a char as a pointer in

Thread view Attachments: 0

lcd4*???

2009-01-12 by sciboy_2003

hi there ... i'm working on designing a data logger for my project. i wanna use a lcd so that i'll be able to show the adc results on it, but there is only 4*40 chars./line in codewizard AVR. what's all the available formats for lcd that lcd.h function will support?? tnx

Thread view Attachments: 0

Re: [AVR-Chat] Dvelopment Board?

2009-01-12 by Jim Wagner

Some soil moisture sensors are gypsum blocks that form a simple two terminal resistor. There are also 4-arm bridge units and others based on capacitance. The latter type which I know (Decagon) interfaces with SDI-12 (a 1-wire async serial protocol). Jim Wagner Oregon Research Ele

Thread view Attachments: 0

Re: [AVR-Chat] Dvelopment Board?

2009-01-12 by Tim Gilbert

Sounds like you're building some sort of greenhouse controller; we've had a customer modify one of our PDK-Is for that purpose (www.pdksolutions.com) . Most of the sensors you want are pretty simple (don't know about soil moisture). Ethernet and USB can be complicated but there a

Thread view Attachments: 0

Re: [AVR-Chat] Dvelopment Board?

2009-01-12 by rutabagalips

This would be a development board intended to make it easy to work with and develop applications for what product, exactly? --- On Sun, 1/11/09, dharmendra tiwari wrote: From: dharmendra tiwari Subject: [AVR-Chat] Dvelopment Board? To: AVR-Chat@yahoogroups.com Date: Sunday, Janua

Thread view Attachments: 0

witness the crimes against humanity that the Israelis carry out

2009-01-11 by wael abd elgilil

I saw the images and they were disturbing. Images are of the Israeli assault against civilians in Gaza. I did not imagine things in Gaza are going as they are; therefore I forwarded it on to you so that you witness the crimes against humanity that the Israelis carry out http://ww

Thread view Attachments: 0

Dvelopment Board?

2009-01-11 by dharmendra tiwari

In search of a development board with four sensors including temperature, humidity, light and soil moisture sensors. also controls fan, fogger, variable intensity, light bulb, dripper. USB Ethernet Connectivity, 128KB Flash memory, 128KB RAM / 128KB EEPROM memory module, 8-channe

Thread view Attachments: 0

Re: [AVR-Chat] Finally, really, actually, starting off with C

2009-01-09 by Zack Widup

It's gotta go at least to 2112 ... after all, Rush already did an album about that year! Zack On Fri, Jan 9, 2009 at 2:34 AM, Kathy Quinlan wrote: > David VanHorn wrote: > > > > Yes.. The world probably will end in 2012, brought about in no small > > part by my conversion to C. >

Thread view Attachments: 0

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.