Search results

  1. P

    Parallel Tasks

    good info, Yes I found that, but didn't document it so well, I have used setting a threshold for each "as not touched pin" by using for/next to read all the pads to a lookup then when checking which pad is touched, by comparing the touched value to the value in the lookup for that pin + a...
  2. P

    model sound

    The thingy does work...... DAC on Picaxe is not like DAC on any other MCU. It is basically a digital pot with 32 steps allowing volume control of the Vref voltage. The thingy sets the daclevel steps and at same time plays in pwm in C.1.....so It mixes them and outputs on the DAC pin which is...
  3. P

    Parallel Tasks

    Touch Switch is the one I ever only use..... and generally Touch16 ...... I never measure capacitance..?? Thanks for the info and the links to the data sheet. Most of this is hidden from Picaxe users as the only available bits to change are the Configuration Bits in my case for M2 parts. I...
  4. P

    model sound

    Looks good.... I must spend a bit of time reading through it.....
  5. P

    Parallel Tasks

    Yes.....a cable plugged in definately helps..... The touch signals must be a form of RF signal..... If you want to use it after programming just plug in an open ended 3.5mm audio lead.....It looks like it is doing nothing but it must be acting as an aerial..???? Since my last post I have been...
  6. P

    ADC Channel Numbers

    Thanks for your code, Yes, IF/THEN would be the normal way I would do it but some don't like a list of IFs. and I thought there may have been other commands that would give a more streamlined solution I did a rough check on speed and the IF/Then would be the fastest for checking a list....less...
  7. P

    ADC Channel Numbers

    we are getting bogged down in a specific example... If we compare to say Arduino There is AnalogRead for reading Analog Input values. There is DigitalRead for reading Digital Input values Both can be passed a variable (number) that says which pin to read. If I want something to happen for each...
  8. P

    ADC Channel Numbers

    Maybe we are going around in circles, most of the answers don't relate to post #1 of this thread. My original post #1..... lookup list of ADC channels used and readadc b8, b7...... for/next loop b0 is a numerical sequence 0 to 7 and each b0 looks up the table depending on its value to find the...
  9. P

    ADC Channel Numbers

    So is it not possible to pass in pin parameters, has to be specific full bit names.?
  10. P

    model sound

    How are you playing the sounds, do you want picaxe to do everything or is picaxe just controlling a player..? Picaxe can just play pwn square waves, sounds, tones, tunes etc and there are wizards for working with them in the editor. You need to try them and post problems There are examples in...
  11. P

    model sound

    Code can do anything, you need to say what you think you need and read the sections in manual or examples and post your trial code. basic pwm code is pwmout, pin, period, duty eg ..... pwmout B.3, 200, 400 is a square wave out on B.3 Are you wanting PWM to play a simulation of an analog audio...
  12. P

    model sound

    There are loads of boat engines and horns...... post some code so we can see how far you have got or a recording of a sound you want.
  13. P

    model sound

    anything is possible what sound do you want..??
  14. P

    ADC Channel Numbers

    I think this works...... need 2 lookup tables one to get pin numbers and 2nd to get pin values...... lookup b10,(c.0, c.1, b.0, b.1, b.2, b.3, b.4, b.5, b.6, b.7),b8 lookup b10,(pinc.0, pinc.1, pinb.0, pinb.1, pinb.2, pinb.3, pinb.4, pinb.5, pinb.6, pinb.7),b7 sertxd("Pin list..."...
  15. P

    ADC Channel Numbers

    Yes, but how do I do a numerical list of pin values for digital inputs. ;readadc b8, b7 seems to work OK in for/next loop with lookup for analog probably because of it uses adc channel nums...... for b10 = 0 to 9 lookup b10,(c.0, c.1, b.0, b.1, b.2, b.3, b.4, b.5, b.6, b.7),b8 readadc b8...
  16. P

    ADC Channel Numbers

    Ok, more numbers to remember..?? for readadc inputs etc... This for digital inputs..... OK read it into variable then see what bits are high or low..?? I used b0 for B port and b1 for C port etc. C.0 and C.1 are pins 8 and 9 and called bit8 and bit9 when sertxd to terminal. also can use...
  17. P

    ADC Channel Numbers

    input 8,9,1,2,4,5,6,7 main: for b0 = 0 to 7 lookup b0,(8, 9, 1, 2, 4, 5, 6, 7),b8 readadc b8, b7 if b8 = value do something..... next b0 I have used this type of program to read list of analog inputs. The manual say readadc channel, variable.? What are channel numbers...?? The numbers I...
  18. P

    Utilisation de la broche normalement Tx ou Rx comme E/S normale

    You must be running a different Picaxe editor the we run in UK. Do you have the screen shown in #22 Do You see...... COM Port option ... Configure and Test That opens up another screen and an option to test Download Cable Follow the on screen instruction and keep pressing Next until...
  19. P

    Parallel Tasks

    There is probably a need for "in a hurry touch pads", Touch and Touch16 are slow and the emphasis seems on getting an accurate value of the capacitance measured, probably because the process is actually to loop and average many reading over a few ms to get a more stable value. But for simple...
  20. P

    Utilisation de la broche normalement Tx ou Rx comme E/S normale

    The camera does not test the USB port. The camera will use its own comm port even though it is plugged into the same actual USB on the PC Did you test the AXE027 lead as my post #22 There are option to do loop test..... link Tx and RX on the jack plug on end of lead with paper clip Does your...
Top