Yahoo Groups archive

AVR-Chat

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

Messages

Browse messages

Page 63 of 307 · 15341 messages matched

Re: [AVR-Chat] ASM vs. C

2009-01-17 by Muhammad Amiruddin

because with asm , we can directly access the bit of certain registry that we need to use, and with this asm is more powerfull than c. --- On Thu, 1/15/09, Brian wrote: From: Brian Subject: [AVR-Chat] ASM vs. C To: AVR-Chat@yahoogroups.com Date: Thursday, January 15, 2009, 3:45 A

Thread view Attachments: 0

Re: [AVR-Chat] Re: Liquid level measurement

2009-01-17 by David Kelly

On Jan 15, 2009, at 8:46 PM, Darren Worley wrote: >>> Measure the travel of *this* wheel: http://home.hiwaay.net/~dkelly/Husaberg/Pages/4.html >> >> No problem - add a reluctance pickup, near the chain, on the front >> of the drive sprocket. >> > > I think meant how far the wheel

Thread view Attachments: 0

Re: [AVR-Chat] GMM

2009-01-17 by BobGardner@aol.com

I do a rolling rms the same way I do a rolling avg...?I have an array of n samples, and a total. I subtract the sample at the current index from the total, add in the new sample, so now I have a new total with only two adds instead of n. I can get a new avg with a shift if n is 3

Thread view Attachments: 0

Re: [AVR-Chat] GMM

2009-01-16 by David VanHorn

On Thu, Jan 15, 2009 at 9:58 PM, wrote: > RMS is the power level of the signal, so I guess peak to RMS is standard deviation. The formulas look similar to me, deal with the square of the signal. Ok, but having RMS and peak, how would you calculate it again on a new sample, with o

Thread view Attachments: 0

Re: Fork travle - was Re: Liquid level measurement

2009-01-16 by Roy E. Burrage

Using a pot like this, especially a wire wound, 10 turn type, could be bad jazz. I tried that once on a dancer arm for a textile finishing line to gather data. It didn't last very long. If cost is an issue, David, have you ever thought about making your own LVDT? The L might not

Thread view Attachments: 0

Re: [AVR-Chat] GMM

2009-01-16 by BobGardner@aol.com

RMS is the power level of the signal, so I guess peak to RMS is standard deviation. The formulas look similar to me, deal with the square of the signal. -----Original Message----- From: wagnerj@proaxis.com To: AVR-Chat@yahoogroups.com Sent: Thu, 15 Jan 2009 11:38 am Subject: Re:

Thread view Attachments: 0

RE: [AVR-Chat] Re: Liquid level measurement

2009-01-16 by Darren Worley

>> Measure the travel of *this* wheel: http://home. hiwaay.net/~dkelly/Husaberg/Pages/4.html >No problem - add a reluctance pickup, near the chain, on the front of the drive sprocket. I think meant how far the wheel moves up and down in relation to the frame. Is this for the rear

Thread view Attachments: 0

Re: [AVR-Chat] Re: Liquid level measurement

2009-01-16 by David Kelly

On Jan 15, 2009, at 4:07 PM, Bruce Parham wrote: >> Measure the travel of *this* wheel: http://home.hiwaay.net/~dkelly/Husaberg/Pages/4.html > > No problem - add a reluctance pickup, near the chain, on the front > of the drive sprocket. Sorry about that, didn't mean the distance

Thread view Attachments: 0

Re: [AVR-Chat] Liquid level measurement

2009-01-16 by Enki

On 15 Jan 2009 at 10:43, David VanHorn wrote: > On Tue, Jan 13, 2009 at 8:43 PM, 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. Jus

Thread view Attachments: 0

Re: [AVR-Chat] GMM

2009-01-15 by David Kelly

On Jan 15, 2009, at 10:25 AM, wagnerj@proaxis.com wrote: > Heard that this is a common technique. > > Mean of N samples is (1/N) sum(Xi) where Xi is one of the samples > X0, X1, > ... XN-1 > > Now if you are doing a total mean rather than a windowed mean (most > recent > N sample

Thread view Attachments: 0

Re: [AVR-Chat] Re: Liquid level measurement

2009-01-15 by Bruce Parham

> Measure the travel of *this* wheel: http://home.hiwaay.net/~dkelly/Husaberg/Pages/4.html No problem - add a reluctance pickup, near the chain, on the front of the drive sprocket. As for measuring the liquid level, assuming the system is still, aim a columnated beam of light at

Thread view Attachments: 0

Re: [AVR-Chat] Re: Liquid level measurement

2009-01-15 by David Kelly

On Jan 15, 2009, at 10:47 AM, David VanHorn wrote: >> It thought it sounded like a homework assignment. Therefore one is >> free >> to stipulate conditions that are not specified. > > Yeah, it kinda does sound like homework.. > > Asking for ideas is cool IMHO, he's not asking for

Thread view Attachments: 0

Re: [AVR-Chat] GMM

2009-01-15 by David VanHorn

On Thu, Jan 15, 2009 at 12:46 PM, wrote: > You have been comparing to what is done for video. My sketchy knowledge > here is that video is often dealt with in blocks. This particular thing is done by pixel, and no information is shared about neighboring pixels at this level. > So

Thread view Attachments: 0

Re: [AVR-Chat] Re: ASM vs. C

2009-01-15 by subscriptions@aeolusdevelopment.com

David Kelly Wrote >> Can't a modern compiler figure out that all this was unnecessary? > >No doubt it could. But why sweat it? > >IIRC it takes 4 or 5 cycles to to RTI, and and Joerg says at >http://www.nongnu.org/avr-libc/user-manual/group__asmdemo.html that >dispatch takes 4 cy

Thread view Attachments: 0

Re: [AVR-Chat] GMM

2009-01-15 by wagnerj@proaxis.com

You have been comparing to what is done for video. My sketchy knowledge here is that video is often dealt with in blocks. Some of the compression and detection processing compares old blocks to new ones (at the same image coordinates). So, rather than save all the pixels of old i

Thread view Attachments: 0

Re: [AVR-Chat] Re: ASM vs. C

2009-01-15 by David VanHorn

> Twice almost-zero is still almost zero. This is not a "substantial" > improvement as has been claimed. I've built systems where I had to scratch for every instruction.. LOTS of code re-use, and still barely fit it in the device. "buy a larger chip" is the classic answer, but $0

Thread view Attachments: 0

Re: [AVR-Chat] Re: ASM vs. C

2009-01-15 by David Kelly

On Thu, Jan 15, 2009 at 10:55:41AM -0500, David VanHorn wrote: > > This is one of the reasons I don't trust architecture specific > > keywords (interrupt keywords in particular). > > > > And also a good illustration of where mixing asm with C can be of > > great benefit (reducing

Thread view Attachments: 0

Re: ASM vs. C

2009-01-15 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, David Kelly wrote: > If you read somewhere that its not supposed to be then > clearly you are reading old documentation. This misconception may have arisen from something that I tried to explain in an earlier post. What I meant to convey is that t

Thread view Attachments: 0

Re: [AVR-Chat] Re: Liquid level measurement

2009-01-15 by David VanHorn

> It thought it sounded like a homework assignment. Therefore one is free > to stipulate conditions that are not specified. Yeah, it kinda does sound like homework.. Asking for ideas is cool IMHO, he's not asking for us to SOLVE it for him, provide tested code, and assembled PCBs

Thread view Attachments: 0

Re: [AVR-Chat] GMM

2009-01-15 by David VanHorn

On Thu, Jan 15, 2009 at 11:38 AM, wrote: > Are there other measures of "spread" of data besides standard deviation > that would be useful? Probably.. there's a paper on this that may help, but the math is beyond me. Here's some examples of how it's used in video processing. http:

Thread view Attachments: 0

Re: [AVR-Chat] Re: Liquid level measurement

2009-01-15 by David Kelly

On Thu, Jan 15, 2009 at 11:32:20AM -0500, David VanHorn wrote: > On Thu, Jan 15, 2009 at 11:27 AM, Philippe Habib wrote: > > To quote myself... > > > > > > or an ultrasound device bouncing off the water. > > I didn't see where it said anything about wether the container was > cap

Thread view Attachments: 0

Re: [AVR-Chat] GMM

2009-01-15 by wagnerj@proaxis.com

Are there other measures of "spread" of data besides standard deviation that would be useful? Jim >> Mean of N samples is (1/N) sum(Xi) where Xi is one of the samples X0, >> X1, >> ... XN-1 > > Right, I've got that working, but they're telling me that they do NOT > maintain any h

Thread view Attachments: 0

Re: [AVR-Chat] Re: Liquid level measurement

2009-01-15 by David VanHorn

On Thu, Jan 15, 2009 at 11:27 AM, Philippe Habib wrote: > To quote myself... > > > or an ultrasound device bouncing off the water. I didn't see where it said anything about wether the container was capped or not. Caps or lids would make this difficult.. :) This sounds like an ins

Thread view Attachments: 0

Re: [AVR-Chat] GMM

2009-01-15 by David VanHorn

> Mean of N samples is (1/N) sum(Xi) where Xi is one of the samples X0, X1, > ... XN-1 Right, I've got that working, but they're telling me that they do NOT maintain any history other than their mean and standard deviation values! I'm also told (last 10 mins) that they are not us

Thread view Attachments: 0

Re: [AVR-Chat] Re: Liquid level measurement

2009-01-15 by Philippe Habib

To quote myself... or an ultrasound device bouncing off the water. On Jan 15, 2009, at 7:40 AM, David Kelly wrote: > Been waiting on someone to suggest an ultrasonic range finder to > detect > the fluid level. > > -- > David Kelly N4HHE, dkelly@HiWAAY.net > = > = > ==============

Thread view Attachments: 0

Re: [AVR-Chat] GMM

2009-01-15 by wagnerj@proaxis.com

Heard that this is a common technique. Mean of N samples is (1/N) sum(Xi) where Xi is one of the samples X0, X1, ... XN-1 Now if you are doing a total mean rather than a windowed mean (most recent N samples), then the new mean value is Mean = (N*MeanPrevious + Xnew)/(N+1) Not sur

Thread view Attachments: 0

Re: [AVR-Chat] Re: ASM vs. C

2009-01-15 by David VanHorn

> This is one of the reasons I don't trust architecture specific keywords > (interrupt keywords in particular). > > And also a good illustration of where mixing asm with C can be of great > benefit (reducing the latency substantially and decreasing size to boot) This is hilarious

Thread view Attachments: 0

GMM

2009-01-15 by David VanHorn

I'm playing with an idea to make sense of analog sensors. This is borrowed from a technique for background supression in video cameras. Having trouble figuring an economical way to do the means and standard deviations. Take a single analog input, sampled at some appropriate rate.

Thread view Attachments: 0

Re: [AVR-Chat] Re: ASM vs. C

2009-01-15 by subscriptions@aeolusdevelopment.com

David VanHorn Wrote >> With asm, you have to tediously study one great column of code before and >> after you do any chopping and pasting. HLLs have a 2D visual aspect to it. > >It's certainly possible to write ASM as one huge tarball of cruft, but >that's not how I do it. > >Her

Thread view Attachments: 0

Re: [AVR-Chat] Liquid level measurement

2009-01-15 by David VanHorn

On Tue, Jan 13, 2009 at 8:43 PM, 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 8

Thread view Attachments: 0

Re: [AVR-Chat] Re: Liquid level measurement

2009-01-15 by David Kelly

Been waiting on someone to suggest an ultrasonic range finder to detect the fluid level. -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.

Thread view Attachments: 0

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

2009-01-15 by David VanHorn

On Thu, Jan 15, 2009 at 9:55 AM, Bill Knight wrote: > All > I posted the following message three days ago and have not seen it > appear in the group. Did it make it or did I just miss the posting? It made it.. Thanks for the hints.. I'm moving along, I have the ADC now firing by

Thread view Attachments: 0

Re: [AVR-Chat] Re: ASM vs. C

2009-01-15 by David VanHorn

> With asm, you have to tediously study one great column of code before and > after you do any chopping and pasting. HLLs have a 2D visual aspect to it. It's certainly possible to write ASM as one huge tarball of cruft, but that's not how I do it. Here's an ISR that I just compil

Thread view Attachments: 0

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

2009-01-15 by Bill Knight

All I posted the following message three days ago and have not seen it appear in the group. Did it make it or did I just miss the posting? Regards -Bill Knight R O SoftWare ==================================================================== David I do not have an AVR compiler ac

Thread view Attachments: 0

Re: [AVR-Chat] Re: ASM vs. C

2009-01-15 by Russell Shaw

David Kelly wrote: > On Thu, Jan 15, 2009 at 01:06:01PM -0000, brewski922 wrote: >> Ditto Dave. >> I am sure most C devoties would argue that to get down and dirty or >> write the smallest and/or fast code assemble is the way to go. > > I do not consider myself to be a "C devotee

Thread view Attachments: 0

Re: [AVR-Chat] 4*20

2009-01-15 by David Kelly

On Thu, Jan 15, 2009 at 08:37:36AM -0000, sciboy_2003 wrote: > hi there... > tnx for ur comments. > i wanna use a lcd 4*20. is it possible?? Yes. > if yes, i shoule select 20 or 4*40 in Chars./Line section?? Try it and find out. > or how should i connect the lcd pins to selected

Thread view Attachments: 0

Re: [AVR-Chat] Re: ASM vs. C

2009-01-15 by David Kelly

On Thu, Jan 15, 2009 at 01:06:01PM -0000, brewski922 wrote: > Ditto Dave. > I am sure most C devoties would argue that to get down and dirty or > write the smallest and/or fast code assemble is the way to go. I do not consider myself to be a "C devotee", altho C is among my prefe

Thread view Attachments: 0

Re: [AVR-Chat] Re: ASM vs. C

2009-01-15 by Zack Widup

Since I am mainly in the "hobbyist" class, I am not concerned about the time it takes to write a program. I'm more concerned about program efficiency when it's actually runing in the microcontroller. I write in assembler because the programs come out much smaller and faster than

Thread view Attachments: 0

Re: ASM vs. C

2009-01-15 by brewski922

Ditto Dave. I am sure most C devoties would argue that to get down and dirty or write the smallest and/or fast code assemble is the way to go. And most assemble folks would say to get the program completed in the least amount time and/or most cost effective do it in C. So both of

Thread view Attachments: 0

4*20

2009-01-15 by sciboy_2003

hi there... tnx for ur comments. i wanna use a lcd 4*20. is it possible?? if yes, i shoule select 20 or 4*40 in Chars./Line section?? or how should i connect the lcd pins to selected port?? tnx...

Thread view Attachments: 0

Message 12188

2009-01-15 by sciboy_2003

hi there... tnx for ur comments. i wanna use lcd 4*20. is it possible??? if yes, i should select 20 0r 4*40 in Chars./line section ?? how should i connect lcd pins to selected port ?? tnx...

Thread view Attachments: 0

Re: [AVR-Chat] ASM vs. C

2009-01-15 by Dave Hylands

Hi Brian, On Wed, Jan 14, 2009 at 7:45 PM, Brian wrote: > When I started in AVR's I used ASM then I learned C and found it much > easier, faster, powerful. > > What do you like most? Why would someone like ASM over C? C is so much > easier I think. > > I ask this because I hear p

Thread view Attachments: 0

Re: [AVR-Chat] ASM vs. C

2009-01-15 by dlc

Noooooooooooooooo............ Brian wrote: > When I started in AVR's I used ASM then I learned C and found it much > easier, faster, powerful. > > What do you like most? Why would someone like ASM over C? C is so much > easier I think. > > I ask this because I hear people that li

Thread view Attachments: 0

Re: [AVR-Chat] ASM vs. C

2009-01-15 by Jim Wagner

Well, some of us like asm because of speed and because things are not hidden in the depths of inscrutable libraries. A lot of this has to do with control, determinism, and predictability. Also some of us grew up on assembler and just don't want to change. Jim Wagner Oregon Resear

Thread view Attachments: 0

Re: [AVR-Chat] Liquid level measurement

2009-01-15 by kelvin kooger

You can use combination of weight and IR on all the bottles (just incase 2 are full).. --- On Wed, 1/14/09, Tim Gilbert wrote: From: Tim Gilbert Subject: Re: [AVR-Chat] Liquid level measurement To: AVR-Chat@yahoogroups.com Date: Wednesday, January 14, 2009, 4:19 AM Most windshiel

Thread view Attachments: 0

ASM vs. C

2009-01-15 by Brian

When I started in AVR's I used ASM then I learned C and found it much easier, faster, powerful. What do you like most? Why would someone like ASM over C? C is so much easier I think. I ask this because I hear people that like to program in ASM and I don't know why. Brian

Thread view Attachments: 0

Re: Liquid level measurement

2009-01-14 by ajcollins99

All of these are good ideas. When thinking about this, I ruled out weight becasue you never said it would be the same liquid each time. If so, weight is the best (easiest) option in my opinion. Camera and IR are good ideas, however sensitive to environmental conditions. Is this b

Thread view Attachments: 0

Re: [AVR-Chat] Liquid level measurement

2009-01-14 by Rick B.

Rube Goldberg lives !!! --- On Tue, 1/13/09, Zack Widup wrote: From: Zack Widup Subject: Re: [AVR-Chat] Liquid level measurement To: AVR-Chat@yahoogroups.com Date: Tuesday, January 13, 2009, 11:31 PM Naah, that's too easy! :-) Zack On 1/13/09, Alex Shepherd wrote: > > > An ATMEGA

Thread view Attachments: 0

Re: [AVR-Chat] Liquid level measurement

2009-01-14 by Philippe Habib

The company I mentioned earlier makes two sensors types. One trips on wet and the other actually needs real water, not just moisture sticking to the walls of the container. On Jan 13, 2009, at 7:19 PM, Tim Gilbert wrote: > Most windshield rain sensors use the index of refraction

Thread view Attachments: 0

Re: [AVR-Chat] Liquid level measurement

2009-01-14 by dlc

Put a strong magnet on a float around a rod that goes down one side. Put a hall effect device at 1/2 and nearly empty. The rest goes without saying. DLC Philippe Habib wrote: > I have used sensors from SIE Sensorik to read liquid level through a > plastic wall. They are easy to u

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.