Search results

  1. F

    if else command

    Hello, on my 08M2, looking at the following code: main: if pin3 = 1 then high 1 goto playTunes else goto main endif Is this syntax correct to perform both the "high 1" and "goto playtunes" commands if pin=3. Can you perform two things if your logic testing is correct, or do you need to direct...
  2. F

    current calculation

    hello, I am wiring up an elementary LED / transistor configuration. I just wanted to confirm if I am doing my LED current calculation correctly. Can someone please confirm if this all right ? 5V(vcc) - 3.0V (white LED Vf) = 2V. 2V - 0.6 transistor Vbe = 1.4V 1.4v / 180 Ohm = 7.8mA so there is...
  3. F

    pull-down resistors picaxe output

    Hello, I am trying to understand why I need the two pull-down resistor/transistor configurations on outputs 6 and 7 of this picaxe chip. Can someone please explain to me what would happen if I just fed the outputs straight into the LED logic circuit. Thanks kindly for any help. (I am just...
  4. F

    reprogram picaxe after soldering

    Hello, I am just new to Picaxe/electronics. I have been told to solder the 10k and 22k resistors to the PCB so it is easier to reprogram the picaxe after PCB is all soldered up. I have been using a breadboard so have had actual holes to poke the wires into, however when the PCB is made, how do I...
  5. F

    multiple samples from ADC ?

    Hello, I am wanting to take three samples per second from my ADC input, so I can be sure the input is continuous and not just a quick, one off input. Each sample gets stored into B12 and then copied to B13. B13 grows incrementally with each sample of B12. I then divide B13 by three and test the...
  6. F

    testing adc input

    hello, I wrote this code to test the adc input connected to a mic. It initially works fine when I clap my hands and it reads adc (b12) as being greater than 154 ie. the lights turn on. However the program then loops and I reset b12 to zero. I do not clap my hands. I thought at this stage the...
  7. F

    08m parallel tasks

    Hello, I was just wondering whether an 08m or an 08m2 perform the following parallel tasks: 1: play a tune continuously eg: tune 0, 8,($64m, $69, $25 etc. etc.) and at the same time 2: output a continuous sequence of highs and lows from two pins: for b0 = 0 to 4 low 0 high 1 pause 3000 high...
  8. F

    sourced current resistor

    Hello, I am connecting an AND gate IC from the output of one of my Picaxe 08m pins. This AND gate is then connected to a BJT transistor (the transistor controls current flowing to an LED) I understand I need a resistor to limit current between the AND gate and the BJT transistor base. Would I be...
  9. F

    electret op amp gain

    Hello, I am using the information below, but am not sure if it is correct. Can someone please confirm if it sounds right ? The electret microphone will provide an output of around 1mV rms from normal speech at a distance of around 60 cm. So you can expect signal levels from the microphone of...
  10. F

    bjt amp for adc input

    Hello, I have the attached circuit for an electret mic amp to feed into the ADC input of a Picaxe 08m chip. Can someone please tell me what components I should change to make this suitable for a 5V power supply (rather than the 9V as indicated). Thanks kindly for any help.
  11. F

    electret microphone

    Hello, am just starting out with electronics and would like to connect an electret mic to my PICAXE 08m2. The purpose is to detect a babies cry, so it just needs to detect any type of audible noise and provide a signal to the 08M2 chip. I understand that I will need to amplify the sound from the...
  12. F

    08M2 parallel tasks

    Hello, I am just learning how to program an 08M2 chip. I want to play a tune and light up a rainbow LED at the same time. The rainbow LED will need continuous current. (It cycles through colours automatically using a chip built in to the LED itself) Can someone please advise the best way to do...
  13. F

    continual looping

    Hello, I am using an 08m2 chip and just starting off with basic coding. The following experimental code should end after completion of "playTunes" function when the time will be more than 2 seconds therefore jumping to "detectSound" function. When I run this in simulation mode the program...
  14. F

    stereo jack to breadboard

    thanks guys for the help. I went and bought a 3.5mm stereo jack socket, but I am unsure which pins I should use (pic attached). I understand that one pin should connect to ground, one pin to pin 7 of the Picaxe and one to pin 2 of the Picaxe. That is three connections however this stereo jack...
  15. F

    stereo jack to breadboard

    Hello, I am going to set up a picaxe circuit on a breadboard including a stereo jack for computer interface. I see you can buy pre-made Picaxe breadboard Programming adaptors that include the stereo jack and they also have a jumper arrangement to alternate between programming download and...
  16. F

    oscillation rate

    Hello, I have downloaded a simple program to flash an LED at 500mS intervals on my Picaxe 08m protoboard. My problem is that this works fine with two different power supplies (1: 3xAA battery supply and 2: 9V battery connected to a 5V regulator). However when I try it with my third power supply...
  17. F

    "PROGRAMMER NOT RESPONDING on COM5" problem

    Hello, I am getting "Programmer not responding" messages when I try to hook up my PICAXE -08 Proto Board Kit to my HP DV6 laptp. I am using an ATEN UC-232A USB-SERIAL converter cable attached to the Picaxe board. My USB-SERIAL converter is being recognised by the computer. Windows beeps when I...
Top