Recent content by rxhul

  1. R

    Coding Challenge for 3 mode game

    Thanks hippy - why is the adc value for the POT 1023/1024? If I am using 8 bit, won't the number be 255?
  2. R

    Coding Challenge for 3 mode game

    Many thanks lbenson :)
  3. R

    Coding Challenge for 3 mode game

    Hi hippy, just a quick question about my earlier coding challenge which you were helping out in firstly, how do I program for an adc value i.e. a potentiometerm so that the higher the value the the faster the leds come on I.e. symbol SOME TIME decreases? and, how do I incorporate my buzzer so...
  4. R

    Coding Challenge for 3 mode game

    I still need to: incorporate my POT (see first post) and my buzzer into this code and I need to do 8-17 8. The user then uses the potentiometer to shorten the rate at which the LEDs come on - i.e they come on faster. 9. They can then press PTM number 1 again to move to mode 2 10. In this mode...
  5. R

    Coding Challenge for 3 mode game

    Symbol BUTTON_MODE = pinC.0 Symbol BUTTON_1 = pinC.1 Symbol BUTTON_2 = pinC.2 Symbol BUTTON_3 = pinC.3 Symbol PUSHED = 1 ; Active high when a button is pushed Symbol LED1 = B.1 Symbol LED2 = B.2 Symbol LED3 = B.3 Symbol SOME_TIME = 4000 ...
  6. R

    Coding Challenge for 3 mode game

    Thanks hippy for the help earlier this month. Due to COVID-19, my plans were disrupted, but now I can say that the initial program works as I want. What is the next stage incrementally. Also, I would like to change one function: mode 4: HANDHELD mode - only LED 2 can come, and it just...
  7. R

    Coding Challenge for 3 mode game

    Also, sorry to bother you - what do you mean when you say I will have to adjust some of the symbol definitions?
  8. R

    Coding Challenge for 3 mode game

    Many thanks hippy, so as far as I see it, the above code works for stage 1 in what you call incremental coding. i.e for now this works for Game 1 and I still have to do Game 2 and 3...? I will programme this onto my circuit tomorrow and try to make additions like you suggest, making sure to...
  9. R

    Coding Challenge for 3 mode game

    Dear all, I am having some difficulties with writing a program which has 4 push to make switches and a pot as the input and 3 LEDs + buzzer as the output. I am attaching a picture of my PCB below although I appreciate this may not be helpful so I will also attempt to explain the function. It...
  10. R

    Neatest PCB arrangement using schematic

    Many thanks hippy, But won't there be a current coming from the output pin 8 through the transistor? I'm just seeking further clarification BTW, because I see what you mean. I will change it! Thanks both.
  11. R

    Neatest PCB arrangement using schematic

    Thanks Alan - In terms of the bottom right hand corner - I was trying to making the layout as compact as possible. How could I make it better? PTM is a push to make switch, same thing as a push button. Thanks for highlighting the fact that one of the push buttons isn't connected - i will fix...
  12. R

    Neatest PCB arrangement using schematic

    I'm unsure what a decoupling capacitor is.. Lacing holes are for the flying wires to connect offboard components. (PTMs and LEDs) I know, but unfortunately, I must follow my instructor on some things..
  13. R

    Neatest PCB arrangement using schematic

    Hi guys, Thank you for everyone who has made this possible. I have spent far too long on this circuit, so I just want confirmation that this circuit below would work! (And if there is anything huge, then a few critiques would be helpful). From a prior discussion: lbenson, if you see this...
  14. R

    PCB Layout

    Hi guys, really appreciate everyone's help. just a quick question - in the template above that had been causing confusion: why does the designer use lacing holes which seem to go ”one above, one below” in stead of the 'normal' square configuration? i hope I’m making sense.. cheers, rahul
  15. R

    PCB Layout

    Do i not need to connect the pot in a potential divider with a 1k resistor?
Top