555 countdown timer design question

Collapse
X
Collapse
+ More Options
Latest Activity
 
  • Time
  • Show
Clear All
new posts

  • stj
    replied
    Re: 555 countdown timer design question

    there is a Linux avr simulator.
    https://github.com/buserror/simavr

    Leave a comment:


  • eccerr0r
    replied
    Re: 555 countdown timer design question

    I have yet to use an emulator, never seen one for Linux yet
    Fortunately most of the times my programs work well enough to see some life, and adding that CLI is helpful in debug

    Leave a comment:


  • stj
    replied
    Re: 555 countdown timer design question

    i'm actually surprised that the arduino-suit does not include a simulator yet.

    Leave a comment:


  • eccerr0r
    replied
    Re: 555 countdown timer design question

    No, that's the way things go... me, see, I still haven't gotten mine out before you found a solution code
    (but that discrete solution...)

    Leave a comment:


  • Dannyx
    replied
    Re: 555 countdown timer design question

    Originally posted by eccerr0r
    Always faster to find a solution already made instead of building one yourself!
    Was that sarcasm ? Yes, it is easier, but for beginners it's easier to adapt an existing code than trying to create one from scratch - found that myself in the past days. I'm now slowly getting the hang of it and starting to understand how it operates.

    Leave a comment:


  • eccerr0r
    replied
    Re: 555 countdown timer design question

    Always faster to find a solution already made instead of building one yourself!

    I had made a mistake in my pseudocode so I gave up on it for now, I thought that the 2313 supported interrupt on both edges but looks like you could only choose one or the other; back to the drawing board... but I guess I don't have to bother. Maybe I should finish anyway because it's something I can burn these arduino-incapable 90s2313s on in case I need similar functionality someday...

    Leave a comment:


  • Dannyx
    replied
    Re: 555 countdown timer design question

    Another good one here which pretty much nails it and requires even less tweaks. One thing I WILL want to add is a buzzer which gives off a very brief beep when the light is latched on and perhaps lights up an LED as well to know which mode you're in. The only thing it requires is reversing the HIGH/LOW values for the buttons, since my remote output is active HIGH, so it pulls whichever pin I connect it to VCC rather than GND like in the example.

    Got my Mini ordered today, so I'm officially into this

    Leave a comment:


  • eccerr0r
    replied
    Re: 555 countdown timer design question

    It was my own serial template, which is a full CLI for the AVR. That's why it uses a good chunk of space... Since it was a CLI it used a good amount of RAM too (based on the meager amount of RAM in the 2313) to buffer the command line, and all that code needed to process that RAM...

    Note that 2K of flash is 1K of instructions (since AVRs are 16-bit instruction, 8-bit data). I think my CLI takes about 512 words or so of instruction memory (thus 1K bytes or so) but I never calculated it, all I know all those strcmps() I had to reduce the compare strings down to save a byte here and there to squeeze it all into memory...
    Last edited by eccerr0r; 11-14-2017, 10:20 PM.

    Leave a comment:


  • stj
    replied
    Re: 555 countdown timer design question

    2k?
    if it was a pic you would be using a few hundred bytes at most.
    that's the thing about pics, the assembly is compact but the chips arent the most endowed when it comes to timers,uarts etc.

    Leave a comment:


  • eccerr0r
    replied
    Re: 555 countdown timer design question

    Oh good I won't have to finish mine then

    Funny, I was debating whether to rip out the serial code from the template I always start with... alas the serial code template eats up a good chunk of the 2K of flash in a '2313

    Leave a comment:


  • Dannyx
    replied
    Re: 555 countdown timer design question

    Found THIS which comes close to what I'm trying to accomplish. It will require tweaking of course, but gets me in the ballpark....my skills are very rusty, so I'll have to take it step by step by first turning the light on/off with an actual pushbutton, then replace that with the remote module (since it outputs 5v directly), make sure it still works, then slowly try to implement the "hold" feature....

    Leave a comment:


  • stj
    replied
    Re: 555 countdown timer design question

    that's probably the programmer that's just a couple of transistors and some resistors & diodes.
    i build a couple of those for people once.
    good for old chips like the 12c508

    Leave a comment:


  • eccerr0r
    replied
    Re: 555 countdown timer design question

    I've only used tavrasm and gcc (and hence also gas) for atmel. My preferred platform is atmel because of gcc. I use uISP with a parallel port SPI interface for chip programming for Atmel. I still have a pile of 90S2313 and 90s4433 I need to burn, along with a few mega8s... Supposedly I also chanced on an Arduino board with a mega328 on it... Might end up reflashing it to something else, and yes that AVRTransistorTester could get targeted to one of these AVRs.

    For PIC I've only used the 16C/F84 and 16F627, and only used the Linux gpasm tools... it's a shame if now one is required to use their tools now. I forget what chip programmer design I used, was a serial port chip programmer for PIC, again for Linux.
    Last edited by eccerr0r; 11-14-2017, 11:57 AM.

    Leave a comment:


  • stj
    replied
    Re: 555 countdown timer design question

    just to add,

    i'v always used MPLAB,
    i tried GreatCow once and made a "blinky" program just to see if it worked - it did.
    surprisingly good software actually.

    i tried the Mikroe suite but it wouldnt run properly under Linux - so all i can say is it "looks nice"

    Leave a comment:


  • stj
    replied
    Re: 555 countdown timer design question

    pic's need a dedicated programmer.
    not saying you cant make one - everybody did in the begining - the DAVID TAIT design was common.

    software, you can use MPLABX - which is very nice, and free
    http://www.microchip.com/mplab/mplab-x-ide

    or a 3rd party thing like these:
    https://www.mikroe.com/products/#compilers-software <<< not free, but trial is
    http://gcbasic.sourceforge.net/Types...index.php/Home <<< free

    Leave a comment:


  • eccerr0r
    replied
    Re: 555 countdown timer design question

    then there's arduino vs baremetal avr.
    I've never done arduino before... I just program them directly.
    Are PICs tied in with the dev software/hardware? I was quite disheartened when Atmel got bought out by Microchip.

    Leave a comment:


  • Dannyx
    replied
    Re: 555 countdown timer design question

    TBH, I think I'll stick to the "lazy" and more convenient arduino Mini route...I already have a CH341 usb to serial adapter I use all the time for TVs so it should be easy to setup.

    Leave a comment:


  • stj
    replied
    Re: 555 countdown timer design question

    well if your going the AVR route the programmer is cheaper.
    a USBasp is about the same as a decent beer.

    Leave a comment:


  • eccerr0r
    replied
    Re: 555 countdown timer design question

    And dang, the encoding of pseudocode to AVR-C is taking longer than expected... *sigh*

    Leave a comment:


  • Dannyx
    replied
    Re: 555 countdown timer design question

    Originally posted by eccerr0r
    most of them will work just fine.
    Yes, you're right. The application is so basic and simple, prolly any micro will do....it's just a matter of whether they use the same Arduino code I'm "familiar" with...and I put that in quotes because I obviously have very brief knowledge and it's a good opportunity to brush up on my C

    Leave a comment:

Related Topics

Collapse

  • DeanWy
    WD Sentinel DS5100 (NAS) boot issues
    by DeanWy
    Hi all,

    I have a Western Digital Sentinel DS5100 NAS system which has stopped working. It has dual BIOS. I bought the system second hand with an already broken primary BIOS (it rebooted multiple times until second BIOS was used).

    It worked until recently. The system was idle in Windows Server 2012 and a BSOD occurred, I think it was 'critical process died'. Thereafter it didn't boot, it just sat there with no video output and fan speed at 100% (there's a proprietary Windows driver by WD which controls the fan, outside of that it always runs at 100%).

    There...
    07-30-2024, 04:13 AM
  • beogeek
    820-2915-A Wont power on with battery connected
    by beogeek
    Ok so this doing my head in and hopefully someone more knowledgeable will be able to assist.

    I've got a MacBook Pro 820-2915-A it will power on without the battery connected, but when the battery is connected it will do a 2,3-second fan spin when pressing the power button and then nothing.

    After measuring and probing around I found that R7051 was bad, reading high instead of 2.2Ω so I replaced it. Still the same issue, I have the green light on the charger but it won't power on or charge the battery.

    So to cut the long story short I've replaced U7000,...
    02-26-2022, 01:29 AM
  • survivalbloke
    Acer Predator Helios 300 - will not power up if battery is CONNECTED
    by survivalbloke
    This was a no power initially. Thanks to your help, I discovered it was the first mosfet, so I replaced. Now, the device will power up only if the battery is NOT connected. As soon as I connect the battery, it shuts off. If I connected the battery while the device is off, it simply will not respond to the power button. I replaced the battery, and while I suppose the new battery could be faulty, I'm assuming it is not. I'm having the same behavior with the new battery. I measure .2v at the charging coil. Manually applying power to the + and - at the battery header, there is no charging happening....
    06-25-2025, 12:20 PM
  • muhuruu
    PS5 too many USB devices connected
    by muhuruu
    Hello. I have a problem with a PS5 console that I bought to learn electronics repair. The auction description indicated that the console had been dropped. The HDMI port and USB ports were damaged. The HDMI port was replaced by the previous owner, and after his repair, the console worked for 2 days and then became dead. After receiving the console, I replaced all the USB ports. After replacing them, the console started to turn on. On the logo screen, it displays "too many USB devices connected". My further attempts to fix the error involved replacing the Southbridge, 4 TPS2001D chips,...
    05-19-2025, 07:14 AM
  • versionlab
    Weird problem, laptop stays on when connected to another pc
    by versionlab
    Hi, I want to ask for advice about an interesting issue I've been having with a sony vaio laptop.

    Client came and said that "a desklamp touched the back of the lid while laptop was operating normally and it caused the office's circuit breaker to trip. Laptop had never turned on since".

    After taking the laptop apart (checked dc adapter everythin ok), I found a faulty MOSFET on the motherboard which I replaced. Laptop managed to turn on. However, while booting it shut down. Nothing else seemed faulty and thermals were ok. Shutting down was coming at random...
    10-26-2022, 03:43 AM
  • Loading...
  • No more items.
Working...