Search results

  1. T

    Capacitors

    Hi. Some time ago I had a problem programming a 28x2. I solved this by changing the ceramic disc decoupling capacitor for a polyester one. I am puzzled as to why the ceramic capacitor didn't work. It was labelled as 104 which I believe is correct. The reason for my current concern is that I...
  2. T

    FETs

    Hi. I bought some IRF520/STP14NF10 transistors from the Picaxe store but, looking at the data sheet, I don't think they are logic level FETs. Can anyone confirm, please?
  3. T

    Problem with LOOKUP command

    Hi. I have encountered a problem with using the Lookup command. The manual states that: Each lookup is limited to 256 entries, but each entry may be a bit, byte or word constant or variable but if I try to use 256 entries I get an error message stating: Preprocessor has stopped responding -...
  4. T

    ADCSetup error in manual?

    Hi. I believe I have found an error in the ADCSetup command description in Manual2. Or it might be that I have misunderstood what it means. In the section for the 28x2 it says: Example: let adcsetup = %0000000000001111 ; set ADC0,1,2,3 But in the section for 28x2 -5v it says: Example: let...
  5. T

    Programming issue

    Hi. I am having a bit of a problem programming my latest project. I have a 28x2 running some led units but I am having some issues getting the program to load. I have a Windows 10 laptop running the latest version of PE6 and an AXE27. When I try to download the program I get an error message...
  6. T

    Setfreq

    Hi. Can someone help me with understanding the setfreq command, please? If I explain how I think it works can you either confirm it or correct me? As I understand it, a picaxe can use the internal oscillator or an external one. The internal oscillator is enabled by using setfreq mx, where x...
  7. T

    X2 program slots

    Hi. Can someone explain X2 program slots to me, please? In the X2 product briefing it says that there are up to 4 internal slots, each of which can contain around 1000 program lines. My 40X2 program has around 1200 lines and reports it's syntax check as 3910 bytes of 4048 used. Presumably this...
  8. T

    Confused by Symbols

    Hi. Does this make sense, please? Symbol outputline=b4 Symbol RedA=B.0 Let outputline=RedA High outputline It passes the syntax check but so does Symbol outputline=bit1 which can't be right, can it? Thanks.
  9. T

    40x2 Output current capacity

    Hi. I'm in the early stages of making a large led display. It will have a 40x2 driving 192 RGB less via 72 74HC595 shift registers and 72 ULN2803 drivers. I am concerned that the picaxe output will not be able to feed the clock inputs of that many shift registers. I thought about a 2...
  10. T

    Shift registers

    Hi. I want to find out a bit about shift registers and how they can be used for led sequencing. Does anyone know of a good tutorial? Or maybe there is a simple project I could take a look at? Thanks.
  11. T

    Pull up/down resistors

    I have a 40x2 that I use for several functions, each being selected by coding 3 of the input pins of the plug-in measurement heads. Because the pull up/down resistors are housed within the plug I want to minimise them as much as I can. Although not best practice, I can't see why a single 10k...
  12. T

    Ultra command

    Hi, all. I'm playing with a HC-SR04 ultrasonic sender/receiver and have been looking on the forum for previous posts. I have found references to an "Ultra" command but I can't find out what this is. Could it possibly be an obsolete command?
  13. T

    Confused by Port/Pin Naming

    Hi. I'm a bit confused by port/pin naming conventions. For example: symbol sensor1=C.1 readtemp sensor1,intemp works but: symbol sensor1=pinC.1 readtemp sensor1,intemp causes a syntax error. Yet, symbol breakcontact=C.1 let break=breakcontact gives no syntax error but doesn't work unless...
  14. T

    How long will code last without power?

    I'm sure someone has asked before but I can't find it in the archive. How long will code last without any power being applied to the circuit? I have a picaxe controlling the lights in my kitchen and it has been running continually for over 5 years. Whilst we were on holiday recently there was a...
  15. T

    Internal resonator

    Hi. I'm using a 28x2 in a project and to keep the component count down I'm using the internal resonator. Is it ok to leave the external resonator pins floating? Thanks.
  16. T

    If...Then command

    In the manual, some instances of the If...then command show it terminated with an End if whilst others do not. Is there an easy way to understand when to use an End if? Thanks.
  17. T

    Problems with Editor 6.0.8.7

    I've just started using Editor 6.0.8.7 and I'm having trouble with simulating a 28X1 in that I can't seem to be able to make Port C act as outputs. The program works ok with a real chip but not in the simulator. It's making it very difficult to debug the program. I also can't see how to set the...
  18. T

    4x20 OLED problems

    Hi. I'm having trouble with interfacing a 4x20 oled with my picaxe 40x2. On power up I get the startup screen but then it just goes to rubbish. I think it's a problem with the clock speed but I'm not sure. I have reduced the program to just clear the screen but even that doesn't work. The...
  19. T

    28x1 to 28x2

    Hi. I've a project using a 28x1 chip but I need another output pin and the 28x2 seems to use the serial out as an optional output. Can I use the 28x2 as a direct plug-in replacement for my 28x1 as it seems to be pin-compatible. I am using an external 4Mhz resonator for the x1 so I guess I...
  20. T

    Readadc

    Hi, again. I need to read an analogue input of 10 discrete levels (approx 0.5 volt spacing) and I intend to use a rotary switch and resistor chain. I have a few questions, however. 1. Is it OK to use direct 0v and +5v as inputs or should they be protected by an additional resistor (making a...
Top