New answers tagged

0

You can do that with this module, but you may need some additional circuit. The SQW output of the DS3231 can be programmed to output an alarm (active low) when the internal time registers match a certain predefined value. You can use this alarm/SQW signal to power-up your beehive scale (arduino & Co.) e.g. with a single high-side transistor between the ...


1

Yes that is possible, see this project where they use a DS1307, a display and a PIC microcontroller to make a real time clock. It should be fairly easy to change the code and make an output drive a relay to switch on/off your lights at certain times. The Arduino isn't the only microcontroller platform. I fail to see the reason why you cannot use an Arduino ...


0

Yes you can. Either by creating a \$I^2C\$-Interface from scratch or by using a different microcontroller than a preconfigured arduino. But judging from your question you probably won't be able to do either without a really prolonged learning phase. Think of 2 years intense study to build a hard coded bus interface from scratch or 1 year to get into μC ...


2

You are correct that a 555 is not the way to solve this problem. To do this with a microcontroller you need one with that has or interfaces with a real-time clock, some programming (and date and time programs are generally tricky) and some additional hardware to switch the light. If you want to learn then you could look around at various developer systems ...


0

Lets analyse your configuration: T1CON=0x15 Referring to p79 of the datasheet this means Prescaler=1 Clock=FOSC/4 Sync=Disable harmless but ignored Timer=enabled ... as Mike commented, if your FOSC is 4MHz then you're driving the timer with a 1MHz clock. Your formula could do with some more brackets: Count=65536-((Time*(FOSC/4))/Prescaler) You want ...


1

Just in case anybody tries to follow AN3109, here is what I did wrong: forgot to configure TIM1 clock source as TIM_CLOCKSOURCE_INTERNAL; did not enable TIM1 update interrupt in NVIC (it is not necessary for IDLE detection but required for this test); In the end everything works as expected. Well... I'd expect HAL to support HW IDLE flag but that is ...


0

A valid DONE input is a signal rising from low to high. Tie the DONE pin to ground via 10k resistor. You also have to make sure the MCU pins are never configured to drive high if at all there is a connection from MCU output to the DONE pin. The DONE pulse width has to be a minimum of 100ns still. To be considered as valid input (from the datasheet). ...


1

It will help to explain what you want to drive with it because maybe it is not required the way you want it, maybe you don't need it. The 555-timer is also vague because you are using a MCU that can provide a pulse on interrupt, it could be possible your way of thinking isn't correct to achieve a solution. A (perfect) sinus output is impossible with such ...


Top 50 recent answers are included