[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/diy/ - Do It Yourself

Search:


View post   

>> No.1554317 [View]
File: 64 KB, 1366x728, Untitled.png [View same] [iqdb] [saucenao] [google]
1554317

>>1552323
Okay, I owe this nigger a pint.
I wired the GPS module into the serial port and it worked fine, I got it printing the output onto an LCD.
The module is running at 115200 by default though.

Now I've run into another issue.
I've a button for setting the time, it pulls pin 2 low on the Arduino and has a pull up to 5V.

I've attached an interrupt using that pin to happen on falling and run the function in pic related.
Basically it's meant to write zeros to all 6 tubes, pull the time from the GPS (I know this works as I tested it on the LCD), write this time to the RTC (don't care about the date) and then return to the main loop after 5 seconds.

When I push the button however, all the tubes change to zeros but stay there.
I assume it's stuck in the interrupt.
Any idea what I'm doing wrong?

Navigation
View posts[+24][+48][+96]