Search results

  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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)...
  14. O

    Where should a temperature sensor be placed for most accurate results?

    Hi All, As the title suggests, "where" is the best place to mount a temperature sensor which is of course connected to a picaxe project. For outdoor use, i'm guessing it should NOT be in direct sunlight, so it must have a sun shield over it, but also can't be mounted in a shaded area because...
  15. O

    Voltages MORE than 5 Volts to be measured into Analog inputs?

    Hi All, I was asked if i can use a picaxe to monitor that status of a 48V power supply (and maybe also 12V and 24V supplies too) So, my initial thought was to feed the 48V into a simple voltage divider to then present 0-5V to the picaxe analog-input. I figured the divider to be 100K and 10K in...
  16. O

    Do i need a clever do..while loop or a timer maybe?

    Hi all, The below code is simply monitoring for several bursts of data and flash some LEDs (at a slower rate) to indicate the presence (or lack of) data arriving. In this case, the data is active only when activated by the external gear. it is not a constant data stream. (i was previously using...
  17. O

    Cannot use 20X2 "A.0" pin as output ????

    Hi All, I can't seem to assign pin A.0 to my code, it gives me a syntax error. (sorry, i'm not near the PC to cut''n'paste a screenshot of the error). For example, I'm assigning "pinA.0 = bit0" in my code. Am i perhaps using the wrong "pin" syntax for the 20X2? However, all other pins B.0 to...
  18. O

    Is there a good "high side" driver IC with 8 drivers?

    Hi All, Just wondering if anyone knows of a "high side" driver IC with 8 drivers out there? (or 4 drivers, if that's all that's available?). I use high-side switching to provide some decent source current to high power LEDs (Switching Anode volrages on/off etc). I only need something that can...
  19. O

    HOW do i divide a clock source to an output pin in REALTIME? (or close to realtime)

    Hi All, I thought this would be really easy, but now it seems VERY hard to achieve, or am i just over-thinking the problem? I would like to monitor a low frequency clock source (maximum of 1khz), fed into a picaxe, then, with some internal maths or logic, create a division of that frequency to...
  20. O

    AXE027 3.5mm wiring question

    Hi all, Regarding the AXE027 3.5mm stereo-plug wiring, is it wired differently (from the 'normal' standard) for a reason? If i rewired my plug so the shield outer is now Ground (0v) will it become an issue where the data pin *might* come into contact with the shield outer during insertion and...
Top