Search results

  1. T

    18M2 RTC

    I am trying to connect an RTC to the CH1030A project board but cannot get it to work. I am using the centre non-buffered pins B.1 (SDA) and B.4 (SCL) as normal but I am not getting the RTC to run. I have tested the 18M2 and the RTC on the AXE091 project board and all work fine. Any ideas please?
  2. T

    Better coding

    How could I shorten the following code? I have made an electromagnetic pendulum clock and am using an 18M2 to control the pulses and timing. This is a section of code that I use to count the actual seconds (RTC) and the amount of pulses sent to the pendulum. The pendulum is deliberately set to...
  3. T

    Shorter code?

    Below is a section of code that I have within a Program. I am reading an RTC and outputting day, date, time etc etc. This code works fine but I was wondering if it can be made shorter in any way using something like 'Lookup' or 'Select case'? IF DAY=$1 THEN SEROUT...
  4. T

    Timeclock

    I have made a heating time clock which is working fine with the exception of the following line. IF DAY=$1 OR DAY=$7 AND HOUR>=$09 AND HOUR <=$17 THEN LET HEAT=19:RETURN:END IF This only works for day $7 (Saturday) and not day $1 (Sunday)
  5. T

    Two PICs Serin/Serout problem

    I am trying to get an 08M2 to send and receive commands to an 18M2 which has two stepper motors wired. The test code below works perfectly, turning each motor (1 to 4) a set number of pulses.(25 in this example) The first few lines of the 18M2 are: SERIN C.2,N2400,B20,B21 IF B20=1 THEN GOSUB...
  6. T

    Code change

    I made a vivarium controller some months ago which is working as planned. It controls the light on/off at set times and controls the heat lamp, increasing the temperature in the morning, holding a set temperature all day and decreasing at night. With trial and error I found that checking the...
  7. T

    More relay module problems

    I know that this is an old problem but please bear with me. I intend to control the light and heat in my vivarium using an 18m2 Pic and a two relay module - 5v coil, active on LOW (cheap as chips from Ebay ;)) After much testing on my Axe091 project board (without any loads on the relays) I...
  8. T

    DS1307 not advancing on battery backup

    I have a timer circuit running lights etc on my vivarium. Up until yesterday it was working fine. For some reason now, when I power down and power back on again the clock has not advanced. If I remove the lithium cell and power down/up the clock displays ??:??:?? (I have also tried a new...
  9. T

    AXE033 Alarm

    I have set up an AXE033 LCD with clock upgrade. I have been successful setting the time in both serial mode and i2c mode. I can read the time in both modes using BCDTOASCII etc where necessary My problem is using the alarm function in serial mode. The manual states: Main header (OUT) The alarm...
  10. T

    AXE033 in i2c mode

    I have just changed my AXE033 LCD to i2c mode so that I can use the onboard DS1307 clock option. I can send text etc to the LCD and I can read the clock time into variables on my 18M2. Question: How do I display the time taken from the DS1307 back to the LCD display in the correct format (i.e...
  11. T

    CH1030B Board problem

    I have several 'modules' that I have made with various sensors etc all feeding back to a CH1030B board which in turn activates relays via it's Darlington driver. My problem has only just started. For some reason when I now connect the CH1030B board to the v+/v0 the normal 5.1v drops to 1.2v...
  12. T

    Momentary switch - non relay

    I have been asked to construct a circuit to trigger some animated Christmas toys in a shop window. I have attached a basic (rushed :D ) schematic of how I have got one toy working. I would like to know if there is a way of eliminating the relay. i.e an 'electronic' switch. All of the toys...
  13. T

    BOT122 wheel encoder

    I have just received my Picaxe 20X2 Microbot and all 'add on' packs and I am having great fun learning the best way to program for each sensor etc. My problem is the BOT122 wheel encoders. I can read the revolutions using the COUNT command as suggested in the datasheet but how do I apply this...
  14. T

    Chi030a picaxe-18 standard project board

    Please could somebody explain the following from the CHI030A project board manual. What do they mean by 'share' ? Note that when using terminal blocks it is necessary to ‘share’ the V2+ connector with all output pins and to ‘share’ the V1+ connector with all inputs. Remember that with the...
  15. T

    AXE091 board and DS1307

    Page 8 of the AXE091 manual reads: "A 3V lithium backup cell may be optionally connected to the DS1307 RTC chip. This can be achieved in either of two ways: - by soldering a BAT004H-SM socket to the bottom of the board...." How? Where? Please help
  16. T

    GOSUB stack overflow

    Project: 4 digit access code (random numbers) Correct guess produces 7 segment display of required digits for mechanical digilock After solving a random number problem (previous post) my program is working fine apart from a problem with a GOSUB stack error if I make too many incorrect button...
  17. T

    Random number problem

    I have recently started using IC's (555, 4017 etc) but recently I have been convinced that PIC's are the way to go :D I am very new to Picaxe and Basic commands and I am trying to do the following: I have 9 buttons of which 4 are 'true' and the remaining 5 are 'false'. If the 'true' buttons are...
Top