Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Thread Closed: Became flame-war

???
08/01/08 15:27
Read: times


 
#157225 - Target goals and check lists
Responding to: ???'s previous message
I actually do think that writing documentation is quote fun.

It's very similar to writing software. You have to try to keep it KISS, but at the same time be complete and without different parts doing/saying things that are mutually exclusive.

A good hobbyist can wing it a lot, because he/she has enough knowledge to make working decisions on-the-fly based on common sense and experience from past projects.

A beginner should spend quite a lot more time on putting down goals on a paper. Then these goals should be given weights - if they are required or just bonus features. This is required since the goals represents costs in money and time. And they also represents risks - the original design may fail even if time was spent in the planning. Finally, the goals should be expanded into rules: What are the requirements to be able to fulfill a specific target goal. Basically a form of check-list before starting to build the hardware, or buy the components/reference board.

By performing the above, a hobbyist will be better prepared for getting something to work. It will be a bit more work up-front, but collecting all facts will amount to a great boost in knowledge, and it will be more fun to later "connect the pieces" since the hobbyist will have a better understanding how everything will interact, and also be more confident that the result may work.

Example (obviously incomplete, but at least an idea):

Target goal: Should work in car during winter or summer.
- requires components specified for cold -> select automotive or mil-specified components.
- requires components specified for heat -> select automotive or mil-specified components.
- requires support for 10 to 15V supply voltage.
- requires (if power-hungry) automatic cut-off if battery voltage below safe levels, to make sure the car can be started.
- requires a box that can ventilate to avoid condense water.
- might loose power when ignition is turned of - or when engine is started - unless direct battery power is available.

Target goal: Should be mounted under car seat:
- requires holes or similar to fixate under seat.
- requires a maximum physical size.
- requires a minimum length for all connected cables.
- might require protection from interference from other equipment in car
- limits allowed noise level, to not interfere with car stereo.
- requires specific sound level for any beeper or similar.

Target goal: Should always manage to start after a reset.
- requires a working operation of the reset pin. Use reset chip instead of capacitor.
- requires the reset chip to have correct polarity for the reset signal
- requires stable voltage to the reset chip.
- might require watchdog kicks to the reset chip, if it has watchdog function.

Target goal: Should not break if supply polarity reversed.
- requires a diode to block incorrect polarity.

Target goal: Should be able to run software xxx.
- requires a processor known to run xxx - or knowledge how to rewrite software.
- requires a minumum flash size of xxx.
- requires a minumum xram size of xxx.
- ...

Target goal: Should be able to drive two relays.
- requires two processor pins.
- requires requirements for isolation voltage.
- requires max make and break currents to match the intended load.
- requires max number of make and break operations / second and during life.
- requires check if load is very capacitive or inductive.
- requires specific relay model decided.
- requires supply voltage enough to drive relay coil.
- requires free-wheel diodes, or relay with built-in diodes or MOS-FET transistor capable to sinking the energy itself.
- requires that number of deactivations of relay/second is lower than the free-wheel diode or MOS-FET transistor can support.
- requires consideration if power to relays lost when ignition turned off (and uC possibly still has power).

Target goal: Should have x inputs able to detect 12V existence.
- requires voltage divider.
- may require protection from polarity reversal.

Target goal: Should have y inputs able to detect 0V/5V existence.
- requires processor that is powered by 5V.
- OR: that is 5V-tolerant
- OR: a level converter
- OR: a voltage divider. Requires further check of allowed load impedance on input.

Target goal: Accidental 12V on 5V input should not break anything.
- requires that the input is read using ADC to allow a voltage divider always, stepping 12V to max 5V and 5V to max 2.1V
- OR: requires a series resistor and a 5.xV clamp diode.

Target goal: Keep track of time without supply power
- requires processor with RTC, or external RTC
- requires a battery OR supercap
- requires separate crystal unless uC is allowed to run power-consuming normal oscillator.
- separate crystal specification? What precision? Load capacitance? Temperature range?
- supercap also requires charging resistor
- supercap also requires diode to not discharge into Vcc
- if external RTC, reserve correct type of processor pins for communication.
- if internal RTC, reserve correct type of processor pins for separate RTC crystal.

Target goal: Measure vehicle voltage
- requires internal or external ADC
- requires specification of number of samples/second.
- requires that ADC supports required read speed
- requires that external ADC has protocol bandwidth for required read speed.
- requires that processor have dedicated hardware or enough capacity to bit-bang if external ADC used.
- requires specification of needed precision.
- requires specification of needed resolution.
- may require protection from reversed voltage.
- requires specification if measured voltage is the same as the supply voltage, or separate wire.
- requires experiment: must voltage be filtered? Analog filter? Digital filter? Digital filter increases needed sampling rate.

Target goal: All functions using one processor.
- allocate all specific pins
- verify in datasheet that specific pins not colliding in mode configuration
- allocate generic pins
- verify that there was enough pins
- verify that each and every pin really is generic and not open-collector or similar
- verify that any pin connected to 5V (for a sub-5V chip) really is 5V-tolerant.
- verify that any analog pin doesn't clash with a digital function.
- all pins that must be connected? Direct to ground? Direct to Vcc? Pull-down to ground? Pull-up to Vcc? Voltage reference? Specific need for inductors or capacitors? ...


List of 73 messages in thread
TopicAuthorDate
ATMEL AT89C52 Help?            01/01/70 00:00      
   Info            01/01/70 00:00      
      you are ignoring \'the standard\' and the fast            01/01/70 00:00      
         Not ignoring            01/01/70 00:00      
            it does not, but            01/01/70 00:00      
      Anyone want to write simple program for chip for u            01/01/70 00:00      
         \"a few hours\"???            01/01/70 00:00      
         No as simple as you may think            01/01/70 00:00      
            reply            01/01/70 00:00      
               Let's start at the beginning            01/01/70 00:00      
   A Serial Flash chip would be easier            01/01/70 00:00      
   Specification?            01/01/70 00:00      
      what about a "community project"?            01/01/70 00:00      
         Has anyone offered complete C++ for 805x?            01/01/70 00:00      
            yes??            01/01/70 00:00      
               Subset            01/01/70 00:00      
            Would Object Oriented Techniques Be Of Advantage?            01/01/70 00:00      
      Reply specs.            01/01/70 00:00      
         More specifications (and less)            01/01/70 00:00      
            Additional specs. Can you do it?            01/01/70 00:00      
               16 temperature inputs, relay outputs.            01/01/70 00:00      
                  problem is in software            01/01/70 00:00      
                     Lets first choose a chip.            01/01/70 00:00      
                        how many are you going to make?            01/01/70 00:00      
                        It is not just a voltage            01/01/70 00:00      
                  We want to keep it simple            01/01/70 00:00      
         MicroManagement ...            01/01/70 00:00      
         Narrowing it down            01/01/70 00:00      
            More specs again            01/01/70 00:00      
               ATMEL AT89C52            01/01/70 00:00      
                  More hw info needed            01/01/70 00:00      
                     Ok. thanks            01/01/70 00:00      
                        Don't assume. Don't "let's say". Go specific!            01/01/70 00:00      
                  dtraight from the horses mouth            01/01/70 00:00      
               Be Specific            01/01/70 00:00      
            shameless self-advertisement            01/01/70 00:00      
               Hi Jan, some user guide?            01/01/70 00:00      
                  documentation... is always a pain... ;-)            01/01/70 00:00      
                     sometimes "hobby projects" are better off            01/01/70 00:00      
                        what's that?            01/01/70 00:00      
                           a techwriter is            01/01/70 00:00      
                              oh I see            01/01/70 00:00      
                           The REAL issue with documentation            01/01/70 00:00      
                              ever done a hobby project, Richard? ;-)            01/01/70 00:00      
                                 not since the '60's ... well, maybe the '70's            01/01/70 00:00      
                                    well, IMHO, hobby projects are exactly the opposite...            01/01/70 00:00      
                                       remember the reference to Ultramon51?            01/01/70 00:00      
                                          the reward of hobbyist            01/01/70 00:00      
                                             the hobbyist does not need formal documents            01/01/70 00:00      
                                                hobbyist????            01/01/70 00:00      
                                             hobbyist - beginner            01/01/70 00:00      
                                                It's a tradeoff            01/01/70 00:00      
                                             Target goals and check lists            01/01/70 00:00      
                              naah            01/01/70 00:00      
                                 Smaller companies have to run fast            01/01/70 00:00      
                                    the sad thing is            01/01/70 00:00      
                                       Progress            01/01/70 00:00      
                     program interpreted from i2c eeprom?            01/01/70 00:00      
                        possible, but why?            01/01/70 00:00      
                           Waiting for first proposal for whole project?            01/01/70 00:00      
                              Waiting for complete and precise requirements            01/01/70 00:00      
                                 Lets keep on track.            01/01/70 00:00      
                                    A joke?            01/01/70 00:00      
                                       Well said            01/01/70 00:00      
                                       FOR SHAME !!!            01/01/70 00:00      
                                          Taunting?            01/01/70 00:00      
                                          You asked            01/01/70 00:00      
                                          There are AND gates that might work            01/01/70 00:00      
                                             Posible            01/01/70 00:00      
                                                Well ... depending on the relay ...            01/01/70 00:00      
                                                   Useful for others?            01/01/70 00:00      
                                    Off track? Not at all! Tell us what you want ...            01/01/70 00:00      
   shematic 1            01/01/70 00:00      

Back to Subject List