Hi,
I've only recently started playing with electronics, in fact less than a month so far.
I wanted to "scratch an itch" so to speak, and it's not been too bad so far. However, I have an issue which is confounding me, despite reading all I can find via google etc. I have been lurking on this forum for a while too, and have found many valuable insights which have helped me move forward.
Anyway, I am building a sensor device that reacts to inclination or excessive G force.
the 3 main components are, DE-ACCM3D accelerometer, PICAXE 18X, and a XBEE wifi module.
I want a fairly decent battery life so I using 2 CR2450's at 3v each to give me 6v supply.
The accelerometer can run off 3.5v up to 15v as it has its own regulator on board. It also has an output on board that can supply 3.3v. I am using this 3.3v supply to power the 18X and the XBEE.
This runs fine and I have successfully transmitted a signal to another XBEE connected to my PC, which I can view using hyper terminal.
The problem is the amount of current drawn by the XBEE. When transmitting, it can draw 45mA, and receiving draws 50mA. The accelerometer can only supply 50mA maximum, and ideally should be only asked for 10mA. I can risk the PICAXE drawing 20mA, but combine that with the 45 or 50 mA for the XBEE, and things might get a bit smokey !
So, after much thought, I decided to take the XBEE off the accelerometer supplied 3.3v and run it from a voltage divider on the main 6v supply. Doing the maths gave me a 6K8 resistor on top and a 8K2 on the bottom, to give me 3.28v .
I tested this out of circuit and it was correct. However, when I connect it in circuit I only get 1.2v on the Vout of the voltage divider. After much head-scratching, and googling, I decided that the XBEE itself was affecting the Vout voltage, and I would have to change my choice of resistors. the trouble is, I'm not sure whether to go up in value or down. I calculated that if I use a 50K at the bottom, then theoretically that would give me 2v more than I want , which should get brought down to the right 3.2v ish figure the XBEE wants.
I haven't tried this in circuit yet, as I think any mistake will fry the XBEE.
So, am I doing this correctly, or am I way off base ? I realise this isn't strictly a PICAXE issue, but there is one on the circuit ;-)
I am currently building this up on a AXE090 experimenter board which appears to running fine. I only have the minimum number of pins wired in on the XBEE and I'm using 3 inputs and 1 output on the 18X.
I have schematics of the basic voltage paths available, the first is a working config and the second is what I think it should be (but doesn't work as the XBEE doesn't get enough power)
http://files.headru.sh/images/voltage-1.jpeg
http://files.headru.sh/images/voltage-2.jpeg
I would appreciate it if someone more experienced could help me out here and run their eye over this.
Thanks
Alan
I've only recently started playing with electronics, in fact less than a month so far.
I wanted to "scratch an itch" so to speak, and it's not been too bad so far. However, I have an issue which is confounding me, despite reading all I can find via google etc. I have been lurking on this forum for a while too, and have found many valuable insights which have helped me move forward.
Anyway, I am building a sensor device that reacts to inclination or excessive G force.
the 3 main components are, DE-ACCM3D accelerometer, PICAXE 18X, and a XBEE wifi module.
I want a fairly decent battery life so I using 2 CR2450's at 3v each to give me 6v supply.
The accelerometer can run off 3.5v up to 15v as it has its own regulator on board. It also has an output on board that can supply 3.3v. I am using this 3.3v supply to power the 18X and the XBEE.
This runs fine and I have successfully transmitted a signal to another XBEE connected to my PC, which I can view using hyper terminal.
The problem is the amount of current drawn by the XBEE. When transmitting, it can draw 45mA, and receiving draws 50mA. The accelerometer can only supply 50mA maximum, and ideally should be only asked for 10mA. I can risk the PICAXE drawing 20mA, but combine that with the 45 or 50 mA for the XBEE, and things might get a bit smokey !
So, after much thought, I decided to take the XBEE off the accelerometer supplied 3.3v and run it from a voltage divider on the main 6v supply. Doing the maths gave me a 6K8 resistor on top and a 8K2 on the bottom, to give me 3.28v .
I tested this out of circuit and it was correct. However, when I connect it in circuit I only get 1.2v on the Vout of the voltage divider. After much head-scratching, and googling, I decided that the XBEE itself was affecting the Vout voltage, and I would have to change my choice of resistors. the trouble is, I'm not sure whether to go up in value or down. I calculated that if I use a 50K at the bottom, then theoretically that would give me 2v more than I want , which should get brought down to the right 3.2v ish figure the XBEE wants.
I haven't tried this in circuit yet, as I think any mistake will fry the XBEE.
So, am I doing this correctly, or am I way off base ? I realise this isn't strictly a PICAXE issue, but there is one on the circuit ;-)
I am currently building this up on a AXE090 experimenter board which appears to running fine. I only have the minimum number of pins wired in on the XBEE and I'm using 3 inputs and 1 output on the 18X.
I have schematics of the basic voltage paths available, the first is a working config and the second is what I think it should be (but doesn't work as the XBEE doesn't get enough power)
http://files.headru.sh/images/voltage-1.jpeg
http://files.headru.sh/images/voltage-2.jpeg
I would appreciate it if someone more experienced could help me out here and run their eye over this.
Thanks
Alan
Last edited: