Search results

  1. gorgon

    programming help!!!!

    What's your type definition of the ALM[] array? Please show us how you read out the ALM[] to LEDs.
  2. gorgon

    programming help!!!!

    How do you read out the ALM[p] values, and how do you know there is no response? Have you checked the contents of the ALM[] array in memory?
  3. gorgon

    Microcontroller ADC reading?

    It's still on page 719 in the datasheet, and you need to make some calculations to define the max resistance you may use.
  4. gorgon

    How to make 2 scoreboard with two controls?

    If you want to make big 7-segment displays, why not make them yourself from ordinary LEDs? 4 x 3mm LEDs in each segment should make a great scoreboard. This should give around 1.5 to 2" digit size. If you use BCD to 7-segment decoders with open collector drive outputs, you'll only need 8bit...
  5. gorgon

    How to make 2 scoreboard with two controls?

    First you need to give more info on the project, like size of display(height of digits), how many digits in each number? Colour? Response time from pressing button to display? Distance between players and scoreboards could also be of interest. Outdoor, indoor use? How do you want to power...
  6. gorgon

    DC motor polarity reversal?

    You can also use a relay or two for this. The important question is, how do you generate the memory of the last state, 'forward' or 'reverse'? How do you generate the 1s pulse in the first place?
  7. gorgon

    AND and NAND chips

    http://rabbit.eng.miami.edu/info/datasheets/
  8. gorgon

    Wake Up Real Time Clock

    Most of the special RTC chips have interrupt posibilities, with alarm functions. Try to search for SPI Real time clock. Try to take a look at this STM site. http://www.st.com/web/en/catalog/sense_power/FM151/CL1410/SC403
  9. gorgon

    Calculating voltage divider bias, using a thermistor for transistor circuit

    Please post a schematics on our circuit. That way we can see what your intentions are, and compare with what you have done.
  10. gorgon

    Calculating voltage divider bias, using a thermistor for transistor circuit

    If you use this circuit with the NTC as R1 (4500ohm cold and 3500ohm warm) R2 should be in the interval from 470 to 560 ohms, to connect the base of the transistor to the output, Vout. This is based on Vcc = 5V. Doing it this way you'll never have an accurate setpoint for the turn on of the...
  11. gorgon

    mplab libaray

    Are you programming in assembler or C? If you need to rewrite every time you use a bit of code, you should get your self a proper editor. One with possibility to open more the one file at the time, and good coppy/ paste commands. If you want to make your own code files, the simplest way is...
  12. gorgon

    Potmeter help

    If the 11.1V is just a supply for the pot, you clould use a 6v2 zener to drop the voltage dovn to 5V and then use the pot over 5V. If th input voltage is from 0-11.1V and you want to have this represented as 0 - 5V on the input, you'll need to convert the voltage either with a voltage divider...
  13. gorgon

    need help to display on LCD

    When you calculate (or convert from binary to ASCII) you need to adjust the 'total' with the value from the previous digit. something like this: dx=int(number/divx) number = number - (dx*divx) dx-1=int(number/divx-1) number = number - (dn-1*divx-1) And so on until the number is in the...
  14. gorgon

    LED's and resistors

    The left one :)
  15. gorgon

    Watchdog Timer

    The reset is equal to a normal warm start and any reset of variable RAM depends on the definitions in your program, I would assume that any variables with values defind in header files will reinitialize. If you initiate variables in your own code, you may test for warmstart/coldstart and keep...
  16. gorgon

    Watchdog Timer

    The problem with this is that the watchdog timer is not a normal periodic timer. If it times out, it will reset the mcu, and start the program again. Set to 2.2s it takes 2.2s before the program resets. The whole idea is for your program to reset the watchdog counter at a regular interval...
  17. gorgon

    Programming of MUC

    -1 is the same as FFh. static tell you that it will only set this variable to -1 the first time, and then keep the current value, whatever it is.
  18. gorgon

    Want circuit to return to previous state when turned back on

    The simplest way to do this is to use a latching relay as the memory component.
  19. gorgon

    Programming of MUC

    To turn the cursor off you need to reset bit1 in the displaycontrol command to '0' The format for this command is 00001DCB - where bit0(B) is the blink control, bit1(C) is the cursor control, an bit2(D) is the display on/off control. I suppose this is done in the init_LCD(); function, so...
  20. gorgon

    8 channel source drive

    All your questions is answered in the datasheet, bur may need some decoding. From the datasheet you will find that the drivers need at least 2.4V input voltage to turn on full. The 350mA is the max current for each output, BUT you can't drive all outputs at the same time. From the graphs at...
Top