What Electronic Projects are you working On

Advert

What Electronic Projects are you working On

Home Forums Electronics in the Workshop What Electronic Projects are you working On

Viewing 25 posts - 26 through 50 (of 103 total)
  • Author
    Posts
  • #153363
    Anonymous

      Les: Thanks for the link, and I have also received the email. When I get time off from work I'll read the code in detail and extract the underlying mathematics.

      I think there are two effects to take into account when simulating a natural flame; one, the natural variation in brightness, and two, variations due to external effects, like a breeze. I found an article on the internet about simulating a candle with LEDs. The article was from 'Circuit Cellar', who used to write a column in the early years of 'Byte' magazine, before it went all PC, in both senses. In turn the article references a professional paper that essentially says that the light intensity from a candle is flat up to a certain frequency, and then falls off as 1/f^2, pretty much like a single pole lowpass filter. I will be writing in C, my days of writing in assembler are long gone! The plan is to generate a uniform pseudorandom number using a linear congruential generator, although if that turns out not to be random enough I'll look at using a Mersenne twister. Then I'll use a simple difference equation to perform lowpass filtering. The number coming out of that will drive a PWM generator that controls the on/off period of the constant current drive for the LED. For simulating the breeze the original article used a thermistor, as the LED candle was intended for use on a stage, and was thus out in the open. I plan to use another, slower, pseudorandom number generator, plus possibly a Gaussian weighting, and feed that into the PWM generator too.

      Regards,

      Andrew

      Advert
      #153367
      Neil Wyatt
      Moderator
        @neilwyatt

        Hi John,

        I've made an AVR speed controller for my loco, with a remote control box with a an LCD readout. It's got the outputs for a solenoid 'brake' (the brakes move but the real braking is back-emf) and for a horn/engine sound speaker when I get round to coding the sound generation.

        I've made a few other FET based motor controllers, all PWM and fairly modest current capacity. They just get simpler and simpler with tougher FETs and cleverer micros.

        Is it worth starting a thread on this topic?

        Neil

        P.S. is it ever possible to have too many 100nF capacitors – I can't find ONE! AGAIN!

        #153387
        Michael Gilligan
        Participant
          @michaelgilligan61133
          Posted by Neil Wyatt on 24/05/2014 12:02:24:

          … I've made a few other FET based motor controllers, all PWM and fairly modest current capacity. They just get simpler and simpler with tougher FETs and cleverer micros.

          Is it worth starting a thread on this topic?

          Neil

          .

          Definitely !!

          …. Especially if anyone can contribute regarding adaptations for high current use.

          MichaelG.

          #153391
          Anonymous
            Posted by Michael Gilligan on 24/05/2014 13:59:37

            …. Especially if anyone can contribute regarding adaptations for high current use.

            MichaelG.

            Depends what you mean by high current? I'm comfortable with power semiconductors and their drives running at hundreds of volts and hundreds of amps. And I know of at least one person on this forum who knows way more about power electronics than I do.

            In my photo albums, under 'Semiconductor Devices', there are some notes on the characteristics and foibles of semiconductor switching devices.

            Regards,

            Andrew

            #153397
            Michael Gilligan
            Participant
              @michaelgilligan61133
              Posted by Andrew Johnston on 24/05/2014 14:47:56:

              Posted by Michael Gilligan on 24/05/2014 13:59:37

              …. Especially if anyone can contribute regarding adaptations for high current use.

              MichaelG.

              Depends what you mean by high current? …

              Regards,

              Andrew

              .

              Thanks, Andrew,

              I suppose that was a "how long is a piece of string" sort of comment. blush

              … What I meant was anything an order of magnitude or two up from Neil's "fairly modest".

              MichaelG.

              #153404
              Anonymous
                I suppose that was a "how long is a piece of string" sort of comment. blush

                … What I meant was anything an order of magnitude or two up from Neil's "fairly modest".

                MichaelG.

                Which still leaves me in the dark, as I don't know what Neil regards as modest. smile o

                Andrew

                #153406
                Neil Wyatt
                Moderator
                  @neilwyatt

                  My 'fairly modest' is about 8 amps stall current, but designed to handle up to about 30. Full 8Atand the heat sink doesn't even start to get warm.

                  Anyways, I've started a thread for motor controllers, so this one can stay general.

                  Neil

                  #153408
                  jason udall
                  Participant
                    @jasonudall57142

                    Re flickering. .
                    Do you really need to generate pseudo random on the fly?..
                    A long enough sequence in rom would do….
                    Or noise diode into a/d pin….but fixed sequence .or two sequences of differing lengths. …
                    But hey its your thing…
                    Just a thought..the guys designing the original lamps strove to make the lamp as flicker free as possible…and now we take a perfectly good light source and much it up to make it more” real” we are truly mad

                    #153418
                    Michael Gilligan
                    Participant
                      @michaelgilligan61133
                      Posted by jason udall on 24/05/2014 17:11:55:
                      we are truly mad

                      .

                      Quote of the Day, Jason.

                      MichaelG.

                      #153419
                      Michael Gilligan
                      Participant
                        @michaelgilligan61133
                        Posted by Neil Wyatt on 24/05/2014 17:06:54:

                        My 'fairly modest' is about 8 amps stall current, but designed to handle up to about 30. Full 8A tand the heat sink doesn't even start to get warm.

                        Anyways, I've started a thread for motor controllers, so this one can stay general.

                        Neil

                        .

                        Thanks, Neil

                        MichaelG.

                        #153422
                        John Stevenson 1
                        Participant
                          @johnstevenson1
                          Posted by Andrew Johnston on 24/05/2014 14:47:56:And I know of at least one person on this forum who knows way more about power electronics than I do.

                          Regards,

                          Andrew

                          .

                          Aahh you must mean Flash Gordon ?

                          #153426
                          Neil Wyatt
                          Moderator
                            @neilwyatt

                            Hi Andrew,

                            If you are using Arduino, drop in this AVR code. It's an exact implementation of the random function used in BBC Basic IV. The random number is a 5-byte integer in temp:temp4 and index should be set to 0x04 on entry.

                            Neil

                            RANDOM_LOOP:
                            ;we run this four times to create the next random number (BBC BASIC IV Pattern)
                            ror temp4
                            mov X_reg,temp3
                            ror temp3
                            mov temp4,temp3
                            mov temp5,temp2
                            mov temp3,temp2
                            lsr temp5
                            eor temp5,temp1
                            andi temp5,0x0F
                            eor temp5,temp1
                            ror temp5
                            ror temp5
                            ror temp5
                            ror temp5
                            eor temp5,temp4
                            mov temp4,X_reg
                            mov temp2,temp1
                            mov temp1,temp
                            mov temp,temp5
                            dec index
                            brne RANDOM_LOOP
                            ret

                            #153429
                            Bazyle
                            Participant
                              @bazyle

                              Learning electronics : We have beginners machining series in MEW and ME. Stands to reason the electronics mags like Practical Electronics do the equivalent. I based my career on what I learned from 3 issues in 1969 as my degree is not in electronics.

                              #153433
                              Neil Wyatt
                              Moderator
                                @neilwyatt

                                I was given a photocopied series from Practical Electronics on an introduction to logic, and my dad was happy to order me as many free datasheets from RS as I wanted with each order. For some reason he was less happy about me ordering big chips..

                                I still have a ZN104E that's about 35 years old, now relocated into a crude frequency counter/generator with one of those sine/square/triangle chips.

                                Two books I still use for non-logic stuff are Michael Tooley's Maplin Electronic Circuits Handbook and a battered copy of The Art of Electronics first edition, that I discovered 20 years too late.

                                Neil

                                #153446
                                Anonymous

                                  Here is a PCB I did earlier, in fact over 15 years ago, names blurred to protect the guilty:

                                  pcb_front.jpg

                                  And t'other side:

                                  pcb_rear.jpg

                                  There's not a single thru hole component on the board. You can tell it's a bit old hat though as a lot of the ICs that are not BGA have leads. smile o And the standard passives are 0603, which is bit large these days. There are some quite big gaps on the PCB and large SM capacitors, these are for isolation of the two telecon lines, one for a telephone and the other for a modem. I can't remember if the board was 6 or 8 layer, but to cope with the fine pitch BGAs and tracking density we used laser drilled blind vias in the pads and buried vias. Pretty expensive technology for what was intended to be a consumer product. I didn't design the discrete 2.4GHz Bluetooth transceiver inside the silver shield. Of course these days it would all be on one RF IC. The best part about the whole project was that I spent about 18 months working on and off in Holland, all on expenses. smile p

                                  I'm not sure that the electronics magazines these days do beginners articles? When I was taking electronics magazines in the 1970s each article started with a detailed circuit description. Then the description was simplified and put in a box at the side of the article, so it could be skipped. Then it got missed out all together. Probably the best bet is to obtain old copies of Everyday Electronics or Practical Electronics and follow the beginners articles within. The Everyday Electronics ones worked for me!

                                  Jason: Thanks for the idea on random number generation. But it is much simpler to generate via the equation. It's one line in 'C' and will generate a far longer sequence than I could store in an IC. And it means I don't need the IC.

                                  Neil: Interesting code, the processor I am going to use is native 32-bit internally, a 32-bit integer should be large enough to generate a reasonable sequence.

                                  Note: High level language compilers are way better than they used to be – the last high power inverter I designed ran all the code switching the IGBTs (at 10kHz) and doing the Park-Clarke transforms in C, albeit on a floating point DSP.

                                  Regards,

                                  Andrew

                                  #153452
                                  Neil Wyatt
                                  Moderator
                                    @neilwyatt

                                    Afraid my homebrew boards don't quite measure up to that, Andrew. Especially after I lifted tracks turning chips round…

                                    Still a work in progress this one! Basically its a 128K ram 8-bit computer running a virtually complete version of BBC BASIC IV (although I'm technically not allowed to call it BBC BASIC, let's say it's highly compatible) with a full colour 1/4 VGA display using an extended set of the BBC VDU commands as per the BBC Master (so with higher level graphic primitives like circles, triangles etc.)

                                    The current bugbear is the lack of a filing system – the amstrad email mini-keyboard is fun and fits with the size of the thing, but I usually write test programs on the PC and upload them via the on board USB-serial.

                                    I haven't done any development for about 18 months, I do mean to make a fully OSFILE compatible filing system using SD cards but every time I have a go I get distracted by other bits, such as debugging the onscreen editor so I don't have to use the ghastly BBC line editor.

                                    Neil

                                     

                                    <edit> Oh my golly gosh! I hadn't realised just how ghastly that PCB is.

                                    circuit.jpg

                                    Edited By Neil Wyatt on 24/05/2014 21:49:13

                                    #153462
                                    Anonymous
                                      Posted by Neil Wyatt on 24/05/2014 21:47:10:

                                      Afraid my homebrew boards don't quite measure up to that, Andrew. Especially after I lifted tracks turning chips round…

                                      Looks a darn sight better than the boards I made as a kid, using transfers and those stupid pens, Day*** something?

                                      If it's any consolation there were a few foul ups (not mine fortunately) on the professional board. The first time round the assembly company boo-boo'd and all the BGA balls were shorted together. Our client then changed to a new assembly company. Second time around when the boards came back the PCB company had 'helpfully' covered all the isolation gaps with small lozenges for copper balance. If you look closely you can see some of them remaining in non-critical errors. Strong words were had along the lines of it's my board and nobody, but nobody, mucks about with it without asking me first!

                                      Regards,

                                      Andrew

                                      #153484
                                      Gordon W
                                      Participant
                                        @gordonw

                                        Re making LEDs flicker- I understand this is to simulate oil lamps? If you overload and use old style components you will get oily black smoke as well, just a thought.

                                        #153487
                                        Geoff~
                                        Participant
                                          @geoff46085

                                          Hi Andrew,

                                          Could you please explain "copper balance"..

                                          thanks

                                          Geoff~

                                          #153489
                                          Geoff~
                                          Participant
                                            @geoff46085

                                            Found it…

                                            **LINK**

                                            Geoff~

                                            #153561
                                            Muzzer
                                            Participant
                                              @muzzer

                                              That link seems to focus mainly on PCBs warping but I suspect what Andrew is referring to is slightly different.

                                              This link **LINK** summarises copper balance for both warpage (1) and plating thickness (2). In my experience, adding lozenges for copper balance is usually to address the latter.

                                              Like him, I've had problems with unauthorised lozenges(!), as they are usually added by the PCB manufacturer, sometimes without asking.

                                              Murray

                                              #153569
                                              Geoff~
                                              Participant
                                                @geoff46085

                                                Thanks Murray

                                                Geoff~

                                                #153606
                                                John Stevenson 1
                                                Participant
                                                  @johnstevenson1

                                                  Two projects I'm working on that fall into this group but at the moment both are background projects because of time.

                                                  First is I have an electronic gear hobber as described in MEW 108, it's based on a Victoria U2 and has literally cut probably thousands of gears, was going to put hundreds but it wouldn't be true thinking about the quantity runs done.

                                                  Anyway it has a problem in that the gear has to be done in one pass as when its starts up and slows down you can see it get out of step. I say a Video on You tube of an electronic hobber built by Andy Pugh in which it didn't do this and was based on Linux CNC so I got a local Linux guru to build me the same box with the OK from Andy.

                                                  Test running is perfect but now need to transpose all the new gear onto the Victoria.

                                                  Second project is an open source [ at the moment ] CNC system that works on Windows, linux and some tablets that uses USB.

                                                  Called EasyCNC the link is here **LINK**

                                                  Bought all the gear to build two boards, one is built but as yet untested, time again, I can see this being a winter project. I don't know if once built and tested I will do anything with it other than possibly a special purpose machine or little router but I feel that the people who start these projects need as much encouragement as possible.

                                                  #153880
                                                  StephenS
                                                  Participant
                                                    @stephens
                                                    Posted by Neil Wyatt on 24/05/2014 19:20:02:

                                                    ……

                                                    Two books I still use for non-logic stuff are Michael Tooley's Maplin Electronic Circuits Handbook and a battered copy of The Art of Electronics first edition, that I discovered 20 years too late.

                                                    Neil

                                                    Neil, thanks for the names of those 2 books on non-logic electronics. Do you or does anyone else have 1 or 2 books they could recommend to study the logic type of electronics please ? Thanks, StephenS.

                                                    #153897
                                                    Neil Wyatt
                                                    Moderator
                                                      @neilwyatt

                                                      Hi Stephen,

                                                      What sort of projects are you looking at? The books I mentioned give a basic introduction to interfacing with and using 'logic' chips, but don't go into great detail. In practice there are three areas you might get into:

                                                      Basic logic gates (TTL/CMOS) these days very few people use these beasts unless they have to, but some time playing around with them is worth the effort as one day sticking a NAND gate or flip-flop into a circuit might save you a huge re-design.

                                                      'Bespoke' logic chips from simple counters to complex display drivers. For these you generally just need to know the rules for wiring them up (in Mike Tooley's book) and follow the example circuits in the datasheet -usually there's enough there for you to use them as building blocks. You may often find that to 'work' these chips you need:

                                                      Microprocessors – the computer on a chip, which is 'where it's at' these days.

                                                      The best way into microprocessors isn't a book, it's buying a simple project board, such as an Arduino, for which there will be masses of free tools, support and tutorials on the web, and start playing.

                                                      You can dive straight in with micros, but learning about discrete devices and other types of chip will be a big plus when you want your projects to interface with the 'real world'.

                                                      Neil

                                                      (There are other things like FPGAs, but life's too short, sadly).

                                                    Viewing 25 posts - 26 through 50 (of 103 total)
                                                    • Please log in to reply to this topic. Registering is free and easy using the links on the menu at the top of this page.

                                                    Advert

                                                    Latest Replies

                                                    Viewing 25 topics - 1 through 25 (of 25 total)
                                                    Viewing 25 topics - 1 through 25 (of 25 total)

                                                    View full reply list.

                                                    Advert

                                                    Newsletter Sign-up