Graham,
I had the same problem and found the solution on this forum. Unfortunately I cant remember what the resolution was. I think it was something to do with the Path of some files and some of...
Type: Posts; User: aajgss; Keyword(s):
Graham,
I had the same problem and found the solution on this forum. Unfortunately I cant remember what the resolution was. I think it was something to do with the Path of some files and some of...
OK,
now that I have MCS V5 and PBP 3 running together - No more problems with compiling
Hi
I am trying to read data from a Bosch BMP-085 Pressure sensor. There is a very detailed thread that has all the required code which is a HUGE help, so my sincere thanks to the original poster.
...
Well,
This project has developed a bit from the early start.
The initial bit was a learning curve on communications. The project itself was to create a 3 phase sinewave to drive a reactive...
Ah Yes,
A good solution, thanks. Using that method I could also now look at the second digit and if >= 5 round up to the next value.
aajgss
Hi Dave,
I think I understand where your heading with this.
Where I can see a problem with what I am doing is I dont have a constant number of digits in the remainder. It could be 1,2,3 or 4...
Hit the end button before finished.
Results
DEC 1
47.6 Knots 686
46.8 Knots 9598
46.7 Knots 8727
46.2 Knots 9162
47.6 Knots 686
Thanks Dave,
I looked at both as you suggested. These are the results
Number 40.8914
DEC2 returns the value 1
DEC4 RETURNS
Number 50.143
Hi Dave,
Code is attached. Thanks for looking
Define LOADER_USED 1
INCLUDE "MODEDEFS.BAS"
DEFINE OSC 12
DEFINE SHIFT_PAUSEUS 10 ...
I now have everything working and calculating air speed
I used "DEC1" to only print out to one decimal point.
Running the program gave some strange results. On occasion the count would...
I found the same searching for I2C - minimum search is 4 characters.
aajgss
Good stuff Mark_s
I tried your code and got a slightly faster speed than before. The difference being I was doing 360 Degrees in 90 steps where yours is 360 degrees in 510 steps so you code has...
Thanks Ioannis,
I changed it to counts, Unfortunatly no difference, but at least if it was working I wouldn't have seen it anyway. Thanks for the tip.
I also Added
ANSELH.2 = 0
This...
Mark_s
I'll be interested in how you go. I did try the MSSP and actually got slower. I know it was the code I had written, because its just logical it should be faster and was going to continue...
Mark_s
What speed are you looking for?
Mine was running at about 9 Hz on an 18F14K50. By setting Config1 to $F100 I now get around 70hZ which is what I was after.
aajgss
This is what I have used to produce 3 sinewaves out of 3 MCP4921 DACs. Cant find an MCP4291
include "modedefs.bas"
ANSEL = %00000000 'Disable analog inputs Channels 0 to 7
ANSELH =...
OK, I have the math to a point where it is calculating somewhere near the number I want.
I have connected the hardware. A MPXV4006 pressure sensor which is connected to a MCP3201 ADC which in...
Thanks to all for you help to this stage.
Now I'm off to create a new thread for the next bit. I have the hardware setup and producing data, just a bit of trouble reading it.
aajgss
Hi Robert,
I think the difference comes from the multiply by 100. This gives the result of for example 3 counts 17 and not 1.732.
But as I said one decimal place is close enough for me.
...
Hi Acetronics,
Here is some brief details of what I did and why I did it.
ADC Counts ADC Volts mmH2O Knots
1 0.0003 0.041 ...
Hi Acetronics,
Here is some brief details of what I did and why I did it.
ADC CountsADC VoltsmmH2OKnots10.00030.0411.5620.00060.0812.2130.00090.1222.71
Thanks Robert,
I am using PBP V2.6 with a PicKit 2 programmer and a low pin count USB board and 18F14K50.
I have had some success by enabling PBPL in MCS.
The values I am after and the...
Sorry Acetronics, I did mean to address you, instead I put Archangel
aajgss
Archangel
Thanks for the info. I think that may be the way to go. A 12 or 14 bit ADC may give me enough resolution.
Robert,
You hit the nail on the head. Exactly what I was meaning.
From...
Hi Archangel
Resolution I would like is to 1 decimal place. The project I am working on is an electronic manometer to check calibration of the Air Speed Indicator for gliders.
The limits are...