Recent content by ruairihev

  1. R

    Interrupt Do's and Do Not's

    I have a setup where I am using an interrupt to signal a fault, (i.e. if the pin goes low then interrupt because the other part of the circuit is indicating a fault). When the other part of the circuit signals a fault I need to do a number of things to reset it which includes do-loops, gosubs...
  2. R

    I2C DS1307 time setting using bytes

    I have a DS1307 where I want to set the time using the writei2c command and I cannot get my head around the conversions needed. I have an OLED display with buttons so I can set the time manually. The format is hh:mm:ss. (b0,b1,b2,b3,b4,b5). Each digit of the time is stored in the bytes b0 to...
  3. R

    Serin Serout Ports Pins

    I am using some 28X2 and 40x2 Picaxes where serial communication is needed. Can someone just confirm for me that any of the ports (port a, port b...etc) can be used with the serin and serout commands? I can't find a direct answer to this but I think they can. I don't have the chips yet so I...
  4. R

    Stepper Motor Driver

    I have been trying to come up with a driver circuit and have attached an image showing what I am thinking. I'm looking at using the L297 and some TIP122 transistors. The pins not connected on the image will be connected to the Picaxe so the Picaxe will control the L297 and it will do the phase...
  5. R

    Stepper Motor Driver

    Thanks for replying. I eventually got the datasheet for the motor and have attached it. Is this motor suitable for a Picaxe to control, if so could someone advise me on what I might need to do to get it working? (i.e. the hardware needed after the Picaxe such as a driver) Thanks, ruairihev
  6. R

    Stepper Motor Driver

    Looking for some advice on driving a stepper motor using a Picaxe to provide the drive signal. Most of the searches I've done are related to low current stepper driving, I have a motor that has continuous current of 3A and peaks of 5A. The motor can be purchased with a controller but it costs...
  7. R

    PI Controller

    I am having a problem with a PI (Proportional Integral) controller for a small wind turbine pitch control mechanism that I am playing around with. The problem is that I don't know how to write the code to get the PI controller working. I have the understanding of what I am trying to do but I...
  8. R

    Serout Command and Short Circuit Issue

    I have pin 21 (output 0) on a 28x1 connected to pin 2 (serin) pin on a 08m2 with no series resistor between them. There is a 10k pulldown resistor. I want to use these pins for serial communication. As I can't use an interrupt on the serin pin of the 08m2 to detect a pulsout from the 28x1, I was...
  9. R

    Serial Qualifer Issue

    I'm using a 08M2 to read serial data from a device. The device output is of the form $WIMWV,12,34,56 When I use this code: serin 2,N4800_4,b0,b1,b2,b3,b4,b5,b6,b7,b8 I get the values b0=$, b1=W, b2=I.....etc which shows that the everything is connected and working When I use this code I get...
  10. R

    Battery Charging and Load Sharing

    I hadn't decided on any values, it's whether this type of circuit will do the job or not or can it be done with a simpler circuit. Wondering really if anyone has done something like this before and could help me out with it. I have included some resistor values in the new schematic which I will...
  11. R

    Battery Charging and Load Sharing

    I'm posting a schematic of a battery charging and load sharing system that I am trying to make. What I want to do is have the load run from the mains but if the mains should fail then the battery will take over. The battery is a 24V Ni-Mh 1700mAh. I have a transformer that steps the mains down...
  12. R

    Remote monitoring

    Hi, I am looking into geting a device for monitoring a wind turbine that is in a field in the middle of nowhere. I have found such a device that uses GPRS for live monitoring and sends the data to a webpage where it can be viewed, it costs nearly €500 so I want to see if something with a Picaxe...
  13. R

    28x1 Hserin problem

    Hi, I am using a 28x1 to read NMEA data from a device. I can receive the data I want using the following code: serin 7,N4800,("$WIMWV,"),b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12 But I now need to use the variables b1 to b12 for other parts of the program and want to use hserin to read my serial...
  14. R

    Non Standard Serial Protocol

    Hi, I have a non standard protocol that I want to read using the hserin pin and command on a 28x1. I know the protocol but not exactly sure how to caputure the data into the Picaxe. It is a 37 bit string with a duration of 1.2mS. bits 1-5 = Start: 11011 bits 6-9 = Direction : bit 6 LSB, bit 9...
  15. R

    NMEA anemometer

    Hi, I want to connect an anemometer and windvane to a Picaxe so that I can measure wind speed and wind direction. I have found this product on the internet and want to make sure that it is suitable for use with a Picaxe before I buy it as it is quite expensive...
Top