Search results

  1. D

    Using Octal in PE6

    Morning folks, Just a very quick question - does the PICAXE Editor support the Octal numbering system? Just personal preference, given that it's base-8... useful for an 8-bit microcontroller... Just can't find reference to it in the documentation Cheers!
  2. D

    PICAXE PreProcessor crash

    Afternoon folks, I'm trying to check the syntax on what I would call a reasonably simple program - quite literally all it does is load a set of data into the table memory of a 20M2. However, when I hit Check Syntax, Windows throws up an error, saying PICAXE PreProcessor has stopped working...
  3. D

    Random command strange results

    Hey folks, I'm trying to write a program to randomnly flash 16 LEDs one at a time, each time using one of 4 random colours with a random delay between each flash. The idea is to simulate shell flashes behind a model of a WWI trench. The 4 colours are achieved by 12 potentiometers in groups of 3...
  4. D

    Editing keyboard shortcuts

    Morning folks, Is there a way to edit keyboard shortcut bindings? I'm specifically wanting to swap F8 and Cntrl + Space so I can step through a program like in Visual Studio (just personal preference)
  5. D

    Understanding i2c addressing syntax

    Afternoon (again) ladies and gentlefolks, Hopefully a quick question with regards to the syntax of the hi2csetup, hi2cout and hi2cin commands, specifically addressing. My bus is going to have multiple slave devices for various different things. It seems that you have to set a slave address in...
  6. D

    Multiplexing using a 40X2

    Hey guys, I'm looking to multiplex a 14x14 LED matrix using a 40X2, and was just wondering if you guys could confirm a couple of things. Firstly, I'm guessing this would make some sense - if I scan the rows, then the columns which are to be activated could be stored in variables, with a...
  7. D

    Interfacing with a DCC decoder

    Good afternoon all, I'm wondering if it's possible to interface with a DCC decoder easily? The problem is the way these decoders work - they use low-side (NPN) switching, with a common positive and separate negative "outputs". Is there a way for a PICAXE to detect that one of these lines has...
  8. D

    SMD Package Sizes

    Evening all, I've looked through the forum and can't find a solution for this, so here goes: I'm looking to use the 40X2 and 20X2 in a project with limited space, so I've gone for the surface mount option. However, the PICAXE website only tells you that the SMD chips are 300mil / 7.62mm SOIC /...
  9. D

    Maths making use of variable overflow

    Happy Friday! I was wondering if someone on here would be able to confirm something for me: I'm planning on using a relatively simple method for having timed functions carried out by the picaxe, while still scanning pins etc. For example, when a pin is detected to be high, 2 minutes later the...
  10. D

    i2c read times

    Morning folks, A (hopefully) straightforward question regarding i2c - if I have a picaxe i2c system where the master and all slaves are picaxe chips, what's the approximate time taken for the master to read one byte of data from a slave? I'm planning on having multiple input devices connected...
  11. D

    Powering a PICAXE system from a model railway DCC supply

    Evening all, I'm wondering if it's possible to power a picaxe from a model railway style DCC supply? If you're unfamiliar, a DCC supply is a variable square wave DC supply, rapidly switching between - 15-17V to + 15-17V (dependant on controller). If it were a simple DC supply, I obviously...
  12. D

    Extracting digits from a number with PICAXE

    Hey folks, Another interesting question - if I want to extract an individual digit from within a longer number (four digits), is there a way to do this? The only formula I could find was [r/(10^(k−1))], where r is the remainder of the number / 10^k, and k is the position of the number you...
  13. D

    PICAXE Programming Language in Notepad++

    hey folks, Slightly different query: Does anyone know if there's a way to get the PICAXE version of BASIC into Notepad++? I know you can spend a few hours manually configuring Notepad++ with the language, but if there's a way to do it already, then why change it :-) I'm asking because I can't...
  14. D

    i2c switching between master and slave

    Hey folks, I'm designing an i2c network consisting exclusively of picaxe chips and a 24LC512 EEPROM. At one end, I've got a pair of chips communicating with a PC over serial, one an i2c slave handling serial comms to the PC, and the other an i2c master receiving data from the pc. I know that...
  15. D

    Request for program check

    Hey guys, I've finished writing this annoyingly long program for the master chip in a serial master-slave system. Unfortunately everyone I know who is also a programmer has no experience with the PICAXE system. My simulations seem to work just fine, but would some kind soul here be willing to...
  16. D

    Overclocking & serial communications

    Hey guys, A quick question regarding overclocking. I know that overclocking a chip to a higher frequency changes the "actual" speed of the baud rate set when you send a serial command. However, i want to send serial commands to another picaxe chip. if I overclock both chips to the same...
  17. D

    pin pitch for connectors

    Hey guys, I need to purchase connectors for a PCB, but the PCB uses a pin pitch of 5.08mm, while the blocks listed on the picaxe store are listed as 5mm pitch. I'm guessing, as the difference is but 0.08mm, the picaxe ones should be fine? They're just the cheapest ones I've found as yet, and it...
  18. D

    Pin bridging

    Hey guys, I was wondering if there is a way to detect if two pins on a picaxe chip have been bridged, so it can act like a keyboard controller. There would be buttons each connecting a certain pair of pins together on the chip when pressed. I'm assuming the way to do this would be to have half...
  19. D

    High side LED switching

    Hey guys, I'm using some RGB LEDs in my project, which have a common cathode. However, I'm also using 10 of them at once. My question here is twofold: can the picaxe source enough power to power all ten of these LEDs (20mA typical forward current per colour, obviously through resistors)? If...
  20. D

    Question regarding picaxe interfacing FAQ

    Hey guys, I've got a quick question regarding one of the answers to the picaxe interfacing FAQ, namely the answer regarding additional outputs (title "I need more outputs - what can I do?") It recommends using the following code (based on two 20M2s): let dirsb = $FF main: serin C.0...