This forum is run by the BATC (British Amateur Television Club), it is service made freely available to all interested parties, please do not abuse this privilege.
Those 3 files should be created at startup, straight after the Raspberry Pi boots.
The first thing that I would look at is your power supply and the connecting lead. If they were marginal, there could be a corruption during the creation of those files (which, for a short time, uses a lot of processing power). The extra processing load would increase the current drain and perhaps cause a problem as those files are written to the card.
Aim for 5.20 volts measured at the Raspberry Pi and monitor with an oscilloscope during startup to see if it dips.
https://howchoo.com/g/ytzjyzy4m2e/build ... -indicator
However, I never bothered as I just use a clear case and watch the Activity LED when I shut it down. (Pi zero in my case).
Hope that helps.
And no extra software.
Pity that pin is in use on the Ryde as that would have helped in my Ryde watchdog project. That looks at the i2c connection. The Rydes have not crashed lately though but I still want to be able to switch the Rydes off safely etc. anyway....
the reason is i plan to add an intervalometer to pins 18/20 to rotate the test cards
but it keeps triggering the shut down due to shutter delay i can set it to trigger a test card change at set timing by using the interval timer. or manually override just by pressing the button
Im assuming i need to edit camtc23a.sh
but not sure which bit
You need to increase the count in lines 65 and 147 https://github.com/BritishAmateurTelevi ... 23a.sh#L65 and https://github.com/BritishAmateurTelevi ... 23a.sh#L65 from 19 to 69. They are counting the number of times that 'sleep 0.1 seconds' has happened.
i now have an intervalometer connected to pins 18/20
I am now able to change cards at a push of a button or set the interval timer to change automatically at what ever set period i like
Code: Select all
Inserting New Images Additional image files without a banner should be 720x576 .jpg files, and those for use with a banner should be 640x480. Each image needs to be accompanied by a text file named in sequence like tcdata10.txt and containing: tcprog testcard640 40 52 CQ G8GKQ in IO91CC The number in the filename determines the sequence that the card is displayed in; for example the card specified in tcdata10.txt will be displayed in the 10th button push after the first card. The first line must be tcprog. The second line is the filename of the .jpg image to be displayed, without the .jpg extension. The third line is the x displacement of the bottom left of the card. This should be 40 for cards with a banner and 0 for cards filling the screen. The fourth line is the y displacement of the bottom left of the card. This should be 52 for cards with a banner and 0 for cards filling the screen. The fifth line is the text for the "bubbles". A maximum of 5 characters. Some special characters such as "-/P-" can be displayed (try it). The sixth line is the text for the scrolling banner.
Code: Select all
tcprog testcard640 40 52 G8GKQ in IO91CC