Search results

  1. O

    How do i create a HOLD-in button function?

    Hi All, I was thinking about adding a button onto a project, where the button must be held IN for say 2 seconds before a function within my code is triggered. I was looking at "Button" & "If Pin" options maybe with a long pause command (for 2 seconds), but not sure if they would achieve the...
  2. O

    My Pot Position LED patterns not quite right ????

    Hi All, I created this small code to read a pot position and generate a pattern of LEDs attached to the Port.B pins. It works fine "as is", but when i try to change my pot range to more than 16 patterns on the LEDs, it never seems to go beyond my 16 pot ranges assigned. The Pot_Position value...
  3. O

    How do we use an IR remote control & detect multiple button-presses?

    Hi all, As the title states...."How do we use an IR remote control & detect multiple button-presses?" I'm building a small IR-picaxe interface to add into a legacy piece of equipment, but the equipment needs to detect a single button-press up to a 3 digit button-press to enable different modes...
  4. O

    How do we invert a complete byte variable?

    Hi All, I thought there used to be an "invert" command for picaxe, but maybe not? Anyhoo, i wish to invert the logic of a complete byte/variable before sending that value out to a port. e.g. If i have a variable with "00" stored in it, then i want it to invert to "FF" before sending this data...
  5. O

    SERIN pin can be tied low to GND? or pulldown resistor preferred??

    Hi All, I've seen a few comments around the web that say the picaxe SERIN pin can be tied to GND to ensure the picaxe operates efficiently and doesn't randomly reboot or pause etc. (assuming the project has no further need to be re-programmed). In all my projects, i've simply replaced the...
  6. O

    Upsizing an OLED display???

    Hi All, I have a few small OLED displays (ebay) on my picaxe projects, but these things are tiny at 128x64 pixel resolution. If i upgrade to a physically bigger OLED display, for example 256x128 pixels (double my original size) will this result in my graphics only filling 1 quarter of the...
  7. O

    Clock pulse multiplier - HOW would i do this?

    Hi All, I was asked by a friend if i can build him a clock multiplier circuit for his euro-modular synthesis stuff. I said "sure, it shouldn't be too hard"....and that was the beginning of my failure lol ;-) On the commercial multiplier modules, they accept an input clock anywhere from 0.1hz...
  8. O

    Help with PushButtons on ADC input?

    Hi All, I'm looking to replace a bunch of pushbuttons on 8 bits of a port by simply using a resistor divider into 1 pin (ADC input). This free's up a load of pins for other uses. My drawing shows what i plan to do, but are other people using a better approach? In my drawing, assuming NONE...
  9. O

    Ye olde "Guitar Tuner" question . . .

    OK, so i've seen a lot of posts asking how to make a Music/Guitar tuner and so on........and oddly enough, a few days ago i was asked by a work collegue if *I* could make a Guitar tuner for him. My immediate response (including lots of swearing) was "Go buy one, it'll be 100 times cheaper than...
  10. O

    What are the maximum limits of peeking/poking address in SLOTS ??

    Hi All, After reading info on using Peek/Poke commands to access extra memory locations (or assigning more variables beyond the B0 to B55 in 28X2/40X2 picaxes). My understanding is: The 28X2 & 40X2 devices have: 256 bytes of user RAM (+1024 more in scratchpad) That means 256+1024 = 1280 bytes...
  11. O

    A special "Select..Case" needs to drive NIBBLES.

    Hi All, The following Select..Case snippet from some of my code needs some refinement. I'm sure it can be replaced by 3 or 4 lines of code with a clever Lookup command, but there some uniqe operations that need to be processed. Currently, the DataX running through my Select..case code works...
  12. O

    Help please, with Rotary Encoder (code) from 08m to 40X2...

    Hi All, This is my FIRST trial using interrupts, something i've never used before, so it's baby steps for me at the moment ;-) I'm trying to migrate some Rotary Encoder code from an 08m to my 40X2. It's originally from this posting by "Vertigo" Here I have prefixed all MY changes with...
  13. O

    My Analogue inputs (Pots) have very fine range of adjustment.

    Hi All, I built a small pot-box test jig recently. It has 8x 10K pots in the box, with all the pot-ends wired to 5v and 0v accordingly, then the 8x wipers connect to a 40X2 picaxe on all 8 bits of Port-D (set to analogue inputs). An older sketch of just 4 pots wired into my picaxe, just to...
  14. O

    Analogue input basic test is failing???

    Hi All, I recently wired together 8x 10K pots to test some of my coding with Analogue inputs etc. I'm using a 40X2 (pic 18F45k22), and i've chosen Port D as my analogue input port for all 8 pots under test. Using the simplest code (below), i can clearly see the following occur in the Terminal...
  15. O

    Multiple i2c ports on the 1 picaxe possible???

    Hi all, As the title suggests: is there a (sneaky) way to achieve more than 1 i2c "port" on the 1 picaxe chip (i mostly use 40X2). I know there's a 3rd party i2c multiplexer device out there, to re-assign identical addresses to different outputs on the chip etc, but i'm trying NOT to add more...
  16. O

    I2C devices - What's the preferred way to control multiple devices?

    Hi all, I'm trying to get my head around how i address/control several i2c devices using a 40X2 and with hi2csetup & hi2cout commands. I'm currently controlling some LED matrix drivers quite easily (Holtek 16k33 driver chip). However, i want to place 2 (or more) of these LED matrices onto the...
  17. O

    Holtek 16K33 LED driver AND Pushbutton Chip

    Hi all, The Holtek 16K33 seems to be part of many LED display boards these days. The chip is relatively easy to drive with a picaxe for LEDs etc. However, (before i try re-inventing the wheel) has anyone actually mastered how to read pushbuttons into this chip? The datasheet shows it can read...
  18. O

    Are there RGB LEDs that can produce a pure WHITE output ???

    Hi All, As the title suggests "Are there RGB LEDs that can produce a pure WHITE output? " I'm mostly interested in Round 5mm leds (or 3mm if they're even available). I've tried many (diffused) RGB LEDs from all kinds of different sources and struggle to achieve a balanced pure white colour...
  19. O

    Trouble with SHIFTOUT and LSBFirst not working...

    Hi All, I'm currently using Picaxe Editor 6.1.0.0 and playing with a Maxim 7219 LED Driver chip and EVERYTHING is working quite good so far... However, regarding the SHIFTOUT command, i can't seem to get the "LSBFirst_L" option to work. Using "MSBFirst_L" works fine and i see the appropriate...
  20. O

    Maxim MAX7219 LED driver not booting up blank (with or without Picaxe attached)

    Hi All, I recently bought a small Maxim MAX7219 LED dot-matrix display to play with. After reading through the 7219 data sheet closely, i found it quite easy to control this chip. However, When the matrix powers up, there is a brief flash of ALL LEDS (well, maybe 3 or 4 don't flash on)...
Top