Search results

  1. K

    Breaking up and combining word variables

    1. I have a 10-bit word variable. 2. I want to put the MSB in a byte variable. (b3) 3. I want to put the next MSB in a different byte variable. (b2) 4. I want to put the other 8 bits into a third byte variable. (b1) Here's what I came up with: 'w10 has 10 bits, say 1100001111 let b1 = w10 &...
  2. K

    Old 28x2 and 16mhz resonator

    I bought a couple of 16mhz resonators to use with my 28x2 so it would run at em64. But when I tried it, doh! I have one of the older (firmware B.0) 28x2s that only go up to em40, which would need a 10mhz resonator, which I don't have. Is there anything I can do with the 16mhz resonator and the...
  3. K

    Number of interrupts on 18m2

    Hello, Does the 18m2 have 8 interrupts, c.0-c.7? Is setint %11111111,%11111111 valid? If not, what's the smallest Picaxe with 8 interrupts? Thanks.
  4. K

    Surface mount 08m2 programming problem

    Hello, I have both the dip and smd 08m2s. I put the dip 08m2 into the breadboard programming setup I have, and everything is fine, the programming takes. I then replace the 08m2 with a soic-to-dip adapter and set the smd 08m2 on top. The pins match up, and I verified with a multimeter a good...
  5. K

    Voltage comparator and compsetup/compvalue

    Application: Read the voltage of 2 2.5V Supercapacitors in series, output to a 10 segment bar LED to show charge status. The picaxe (a 20X2) is powered by the supercaps through a NCP1402, which should output a constant 5V until the input from the supercaps drops below 1V. So: the 20X2 internal...
  6. K

    08m2: servo on C.0?

    So I'm wanting to use an 08m2 in a scenario where I need: 2 LDR inputs (readadc) 1 temp sensor (readtemp) 1 servo (servo) If I understand correctly, my 2 LDRs and 1 temp sensor will take up C.1, C.2, and C.4. C.3 and C.5 are in only. So, can I use servo on pin C.0? I won't be programming the...
  7. K

    Analog output -5V to +5V

    Hello everyone. I have a piece of hardware to interface to that I need 27 digital on/off pins and 2 analog -5V to 5V pins. Based on the number of outputs I would use a 40X2, though if the M2 chips have a relevant feature that would make life easier I'm willing to split them up between multiple...
  8. K

    MPR121 Touch Sensor IC

    Howdy all. Has anyone interfaced a MPR121 touch sensor IC with a PICAXE over i2c? I'm working on it with the Sparkfun breakout for the MPR121 and an 18m2, and I'd like to compare notes. Any working code would also be swell, whilst I plow through the data sheet. Thanks. Brian
  9. K

    Making a Picaxe output act like a button

    Hello everyone. It's time for another episode of "Brian's Simple Questions He Doesn't Really Know How to Ask". I have a device I have disassembled that has surface mount momentary buttons like this: Sparkfun link Through trial and error, I have found that if I apply 5V to the upper set of...
  10. K

    Touch sensor demo board: External inputs

    Hello. I have the 18m2 touch sensor demo board soldered together and working as expected. When viewing the sample program in Debug, the values increase by ~5000 when I touch the associated pad on the demo board. I'm now trying to add off board touch sensors to learn how to make my own touch...
  11. K

    Using a relay vs using an output pin

    Hello. I have a push button switch on a remote control. When you push the switch it goes to 0V and then the remote's microcontroller does some stuff. I want to replace the button with a Picaxe. How do I know whether or not I need a relay involved? I can have the Picaxe take an output low, or...
  12. K

    Sound-deadening material

    Can anyone recommend some sound-deadening material I can use to quiet a servo? I'm thinking something I can wrap (or stuff) around a servo so there isn't such a loud SQUEE when it moves. Thanks, Brian
  13. K

    Possibly OT: US Copyright law and Paintings

    Sorry if this is too OT for the forum, but I am using a Picaxe 20x2 as the micro... Also, I live in the US, and I know copyright law changes country to country. Not trying to shut anyone out, just stating the fact. So. If you buy a painting, you can sell that painting for whatever price you...
  14. K

    Number between two numbers

    I am sending a number over a wireless serial connection using xbees. The number is the argument for the SERVO command. Since there is a chance, however remote, that sending a out-of-range servo command could damage something, I want to make sure that the value is between 75 and 210. This would...
  15. K

    Automated Window Blinds - Schematic and Board

    Woohoo, 100 posts! You may have seen my previous efforts at my computer controlled window blinds (if you haven't, there's a post in Completed Projects - Misc that is calling your name). After 3 generations of prototypes, I have arrived at the following schematic and board design. I'd love to...
  16. K

    Antenna ground connection

    I know diddly squat about antennas, and my googling isn't finding me an answer to my question. Please look at the attached jpg, it comes from the datasheet for the 433mhz receiver I am using. Is that telling me to connect antenna to ground with a capacitor? If so, what value capacitor should I...
  17. K

    2 Picaxe 1 download cable

    I have a 14m that listens to the computer download cable for instructions via serrxd. When it receives a valid instruction, it sends it via serout to a 28x2. The 28x2 does some stuff. I know it works up to that point. Next, I want the 28x2 to send a message back to the computer over serial and...
  18. K

    Estimating battery requirements

    Hello everyone. I want to put a temperature monitor in my attic for the summer (Northern Hemisphere Summer). It would be a very simple circuit, consisting of a Picaxe (14m or 08m), a DS18B20, assorted needed caps and resistors, and one of the Sparkfun 433 mhz transmitters. The Picaxe would...
  19. K

    Nuclear meltdown prevention button

    Hello, I'm a worker at a nuclear power plant, and periodically I have to press a big red button in order to keep the core temperature within limits. This really interferes with my nap time. I'd like to automate it with a Picaxe. I have some questions. 1. Do I need a resistor on the button...
  20. K

    ASK and FSK: interference

    Will an ASK (OOK) transmitter/receiver pair and an FSK transmitter/receiver both operating on 433 mhz interfere with each other? Common sense says yes, but I don't know enough about wireless for my common sense to be worth a darn. Google did not find me an answer. Thanks, Brian
Top