Do this every 180 seconds if a button is pressed

I am making an automatic dog feeder for a school project but I have never coded on C++ and only on python but I need to use an arduino so I have to switch to C++. Can anyone help?

Not just anyone can help. There are things a helper needs to know. Such as knowing some Arduino stuff, knowing some electronics stuff, and C++ stuff would go a long way towards helping you.

Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'

Use code tags (the </> icon above the compose window) to make it easier to read and copy for examination

Does help mean someone is to write the code for you?

how would you code this using python?

It will be very hard to help without knowing the Arduino you are using, the hardware you are using, and what your definition of "automatic" means.

In this forum it is expected that you at least make an attempt at coding before receiving any assistance.

Hello
Take a search engine of your choice and ask the WWW for "dog feeder +arduino".

If you have an Adafruit feather board, they support CircuitPython. Maybe a better choice given you programming skills?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.