@Thanasis ...if you want to keep 20Mhz try to change
if pulse(x)>=2 and pulse(x)<=4 then p(x)=0 'if pulsewidth between 20 and 40uS then read as '0'
if pulse(x)>=6 and pulse(x)<=8 then p(x)=1 'if...
Type: Posts; User: bitmaniac; Keyword(s):
@Thanasis ...if you want to keep 20Mhz try to change
if pulse(x)>=2 and pulse(x)<=4 then p(x)=0 'if pulsewidth between 20 and 40uS then read as '0'
if pulse(x)>=6 and pulse(x)<=8 then p(x)=1 'if...
Ηι! Τhanasis
My friend if you want to use my program -as is- you have to use 4Mhz crystal. Ιf you use 20Mhz you have to change pulse measurements values as the resolution from 10us goes down to...
@ Demon I have not yet tested with another device... The photo wa taken before sensor given time to settle (as soon as I switched on!)
@Acetronics Hi! my good friend! There has been a looong time...
SUCCESS!!!
After trying to increase crystal to 25Mhz and also 40Mhz I had the same problem of grabing only the first 21 pulses.... (problems with PULSIN speed...hmm....)
Finally the solution...
Thanks for trying to help my problem out my friend!
Yes, I tried with 100nf on power.
I am searching over the net for a week now and came across 2 different datasheet of the same sensor...DHT22...
In order to find out what pulsin really grabs I used serout data to debug...
Here are the results so far -after reading the sensor 3 times.... :
NOTE I changed the code a little bit so I can...
It should be byte as it stores the width of the pulse (in uS) PULSIN receives.
Then it simply stores on itself the value of '1' or '0' according the width of this pulse.
Hmm! I will give it a...
Hi! my friends!
I am starting a project for my father's home-made incubator egg machine.
Αs I had an DHT22 (ΑΜ2302) humidity sensor in-hand I tried to make a quick code to see if I can use...
Oh! I didn't know of this new feature! THANKS DARREL. I will get some info and come back!
Do you think we can emulate digital gates logic circuit with a single chip and picabsic pro?
To be more specific do you think picbasic pro and a fast pic is able to emulate
this digital gate...
Mister_e: I had very long time since last read this thread!
I see that ther has been great project with NOKIA LCD stuf!!!
Excellent work you've done my friend!
If ever I need to use nokia lcd...
Well my friend if you read carefully you would notice that Darell uses a method called 'Oversampling technique' to increase the resolution by software trick.
more info at :...
(SO....I have to see both codes side by side so I can learn for my mistakes :) )
You 've done excellent coding ...I'll give it a try although I had problems with averaging routines -keep sending...
... or maybe using HPWM for pulsout ? to keep SC alive all the time!
Well a little bit of experiment with my last hardware : 12f683 , max187 12bit ADC , 4 Mhz Int osc. Servo attached instead of SC working ok (a little bit jerky -but acceptable) BUT when I connect SC...
Well, Scalerobotics , Alain and others
May be we could give this aproach a try and see...
So let's sum up what I have tried so far:
1st just 12f683 -> 10bit ADC cannot do any MPX4115...
Sure there is a timing (delay) problem.
You gave a more sophisticating explanation.
You gave me an idea.May be we I will hook the oscilloscope to see the exact pulse..
Well my friends
I was a bit confusing trying to explain things!
Well see previous post #65 (http://www.picbasic.co.uk/forum/showpost.php?p=78193&postcount=65) to see what I mean exactly.
If...
Oh my friends you made me come back with my previous project (that didn't manage to finish yet!)
Well I have tried all methods available with previous mentioned hw and a few not-listed here one.
...
as Mbox mentioned:
sparkfun has a descent modules for bluetooth as for wifi diy MCU projects:
bluetooth
http://www.sparkfun.com/commerce/product_info.php?products_id=8497
wifi...
Alain about your suggestions:
1> I think you are right I have not implement an rc filter. AN note is VERY usefull here I think. (although I have read it before I did not use rc filter just...
Well,
I put together some stuff on a prototype pcb and servo routines worked ok! ( a little bit of improvement needed!)
I notice that without an op-amp and using just a max187 12bit ADC with...
Hi! Alain
Well max 187 is a very good ADC I think and you can also use External Vref (as I can see from datasheet)
I tried tie external Vdd to ref pin (according to datasheet you have to leave...
Hi! back again with this unfinished project.
Well after a lot of experiment I will alter my schematic again.
Using Darrel code for 14bit convertion I have problems with servo in / out routine....
Hi Scalerobotics,
I liked your smd version (smaller pcb is always a good one!)
I think I will keep the 20Mhz crystal because I have problems here with the servo read/send signals (passtrough)...