Search results

  1. R

    I don't know how to do this, please help me work it out.

    I am building a security system, most has been built and working but I wanted to add a section so that I could disarm the system and rearm it again at the press of a button. I have only one pin left to work with which is C.1 of a 14M2 chip. What I would like to do is when the button is pressed...
  2. R

    What am I doing wrong here?

    Need some help again please. I checked the manual and maybe I am misunderstanding something, but a syntax error keeps popping up. Start: ;Analogue sensor find thresholds by trial and error, depends on soil type, etc. symbol sensor1 = C.1 readadc sensor1, b10 if b10 <100 then goto...
  3. R

    PIR sensor

    I am thinking about a new project that will need a PIR sensor. The circuit will be using a 14M2 chip, and the board has already been made and has a DRPlayer, LDR, 5 switched inputs and 4 high power mosfet outputs, plus power supply suited for 12 volt plus input. I want to design a security...
  4. R

    Simple code has me lost

    What I am trying to do must be very simple, but it has me beat at present. I have a small RF controller that simply puts out a signal and switches a relay on and off. When the button is pressed on the transmitter the relay is on, but when I release the button the relay is off. I want to have the...
  5. R

    memory full error

    I am building a simple circuit that consists of just a 08M2 chip and a momentary button on pinC.2 The idea is to press the button to go to the next label for doing a test. The test is to find out the real value of a resistor in a ladder on C.1 and have that value read back on the computer...
  6. R

    Select Case

    I have read the manual and seen the given example, but for the love of me I still do not fully understand it. Can someone please explain how it works and give some examples of it's use? Thanks
  7. R

    I thought this would be easy for me, but I was wrong!

    This is a simple project, I thought, but I have run into trouble again. The board has been made already so I am committed to using the pins that are in the code. The board uses a 18M2 chip, 6 power mosfets and has 6 switched inputs and an LDR that wont be used. I have attempted the code to use 5...
  8. R

    DRPlayer with 08M2 chip

    A while ago I wrote a small program for my wife and it has been working fine for that last couple of years. It's purpose is to control the grey water coming from her washing machine. The water leaves the sink and goes to a tank that holds about 300L. This tank has a water pump connected to the...
  9. R

    What have I done?

    I must have done something that I am not aware of. When using the serial terminal simulation normally it was a small window that appeared above the editor screen, but now it is a full size screen and separated from the editor. This makes it rather difficult to see what is going on as I have to...
  10. R

    Trying to learn but...

    I have been working on several simple versions of this code, trying to learn as I go. Some of you have helped me in the past recently and I appreciate that a lot, but I am still trying to learn other things so I am using the same project to do this. While working through this code I came up with...
  11. R

    How would I add this to my code?

    I have written some simple code to operate a small pump to flood my seedlings in a hydroponic grow tube. The code works well, but there is a long time between flooding and I would like to add some code to the pump off cycle that will flash a LED on C.4 of a 08M2 chip and the flashing to decrease...
  12. R

    Syntax error, what am I doing wrong?

    I have not been able to overcome this syntax error, help please. 14M2 chip using in only pin. symbol filler_time = 0 if pinC.3 = 0 then filler_time = 30 endif if pinC.3 = 1 then filler_time = 240 endif
  13. R

    Determine resistor value

    I want to use a rotary switch to select one of six different resistors so that I can select which program section to run by using the rotary switch. assuming that the readadc command returns a value between 0 and 4095, and we are dividing this range into 6 equal segments to determine which...
  14. R

    Random timer

    I have been trying to make a simple random timer, but with no luck. What I am trying to do is have a mosfet turn on using a 08M2 chip on pin C.0, that is not the problem. I want the mosfet to be on for about 3 minutes and then go off, also no problem and the problem, a random timer set between...
  15. R

    Syntax error

    I have been having an issue that I have tried many times to solve without success, maybe someone with more experience can assist? #picaxe 14M2 symbol LDRpin = C.4 ; LDR pin symbol PumpPin = B.5 ; NFT Pump pin symbol DayTime = 100 ; LDR reading for day time start2: if readadc(LDRpin)...
  16. R

    Can someone check my code?

    I have written some code and it appears to work fine in the simulator, but in practice, it has a problem. It seems to interfere with another section that as far as I can see there is no connection. Maybe there is a better way to do this coding? start2: ; check reserve tank level and...
  17. R

    Can't "save" or "save as"

    As of today, I have not been able to "save" or "save as" without getting a no response message and then crashing, making me lose the created file. I have reinstalled the software and tried again, but I got the same result. I am running Windows 8.1 and have had no problems for several years until...
  18. R

    Strange behavior, can't figure it out

    I hope someone can help me with this. The project is a catchment tank for my wife's laundry, she wants to save the water and direct it to some trees in the garden. I have written a small simple program to control a water pump. In simulation mode it works fine, but in practice it has a strange...
Top