Sensor Input Query
Bigbutsilent
Posts: 10
Help! No idea what Im doing.
Thats about it. First time here. I have got Demo Board & Proto Board - just don't seem to be able to find the answers on the site or forums.
I want to put two car oxygen/fuel cells onto the prop. I have made a circuit before with a pic. I used an AD822 op-amp. The two cells are calibrated to read and display on a LCD 21% (Air) they then work together - ie they check each other for drift. 10% if more they error message
The cells output between 11mv and 70mv
The question is do i need the op-amp?, can i interface direct to the chip or do i need to covert to digital.
Spin - Well i may as well look at my washing machine. Looks like hard work. It may just be me - old dog new tricks.
If anyone could help point me in the right direction that would be brilliant. otherwise I will just look at all you clever people with envey.
Cheers
Post Edited (Bigbutsilent) : 7/17/2008 2:54:32 PM GMT
Thats about it. First time here. I have got Demo Board & Proto Board - just don't seem to be able to find the answers on the site or forums.
I want to put two car oxygen/fuel cells onto the prop. I have made a circuit before with a pic. I used an AD822 op-amp. The two cells are calibrated to read and display on a LCD 21% (Air) they then work together - ie they check each other for drift. 10% if more they error message
The cells output between 11mv and 70mv
The question is do i need the op-amp?, can i interface direct to the chip or do i need to covert to digital.
Spin - Well i may as well look at my washing machine. Looks like hard work. It may just be me - old dog new tricks.
If anyone could help point me in the right direction that would be brilliant. otherwise I will just look at all you clever people with envey.
Cheers
Post Edited (Bigbutsilent) : 7/17/2008 2:54:32 PM GMT
Comments
2) Spin is not difficult to learn. It shares a lot of concepts with C
I'd recommend putting a day or so aside to just play with controlling LED's, detecting button pushes, driving the TV/VGA, trying the example code, and just generally getting a feel for the Propeller and Spin. I think you'll probably be surprised how quickly you get into a comfort zone.
Develop incrementally and it should be fairly easy sailing, jump in too deep without enough experience and it could be a less satisfactory experience.
I've no real experience with ADC on the Propeller so cannot help there.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Mike, I agree the op-amp stays . I will also check out the AN001.
I used a divider for ref. cheap low power reg 78L05
My very limited programing skills was Clarion (millions of years ago) and more recent - oh dear - Picaxe basic. Well there you go the shame of in a real world application.
Hanging my head in shame.
C
P.S. How do you edit a prior post?
I've been trying out the examples - I can flash LEDs with the best of them now. The two sensor problem is the little bit at first on will use one cog. The others are spoken for with the rest of the project.
General Note:
Sorry about the quality of submission - new here, and first time on a forum - don't know how these work either.
C
C
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
C
Just noticed I spelled your name wrong. Sorry
I see the mcp3204/8 has SPi - I have not got into that but maybe it would be worth doing it with the prop.
C
Don't be surprised if you you don't grasp "AN001" on a first or later read, I found and still find it quite complicated, but there's usually someone here who can give advice at the level you need.
From your previous experience I presume you're well aware that it's often worthwhile writing short test programs to try out and understand a feature then use it rather than try to incorporate a feature into a much larger program without a good understanding. I definitely think that applies to the counters.
and more recent - oh dear - Picaxe basic ... Hanging my head in shame
No shame there, but I would say that using the PICAXE myself as well as the Propeller. Rather topically I used a PICAXE on my ProtoBoard as an easy way to get three channels of analogue into the Propeller using a serial link
labour of love
Another Brit ? Or from Down Under ?
Post Edited (hippy) : 7/17/2008 5:57:23 PM GMT
You may just have an idea - still use the picaxe stuff for the inputs and output to the prop. I need two or three sensor inputs into each cog - hence the small bits, it would be nice to run them on there own. The output ie results could then be sent to the display (LCD/OLED)
Problem then is loads of electronics kicking around and more to go wrong.
I think thats a pretty neat idea. Why cant i think like that. Played all afternoon with small bits of code. Ummmmmmmmm.
That hill is steep.
C
PS. Sorry again - Brit
PPS AN001 some of it - the bits that are written in English
I jumped from the basic stamp to the propeller and in my opinion, getting a program to work has more to do with understanding logic flow than any particular syntax.(of course you have to get to understand the syntax). So what I'm trying to say is that the picaxe programming you have done should help get you up to speed soon.
I'm looking at the 3208 but wonder if the path for me at the moment is with the Picaxe chip handling the sensor inputs. I already have that software and hardware sorted.
You would think that there would be a general bit of code for a voltage input routine in the library. Oh well I will just have to bite the bullet and right one. I suppose that the problem if you want to interface to the real world - you need real I/O that you can use.