Cool stuff for Raspberry Pi, Arduino and all electronics hobby projects
Notifications
Clear all

[Solved / Archived] WittyPi 4 mini doesn't start up and/or doesn't wake up and red led just blinking shortly

4 Posts
2 Users
0 Likes
542 Views
 Bart
(@katoendds-nl)
Posts: 11
Active Member Customer
Topic starter
 

Hi,

 

I encounter the problem that my WittyPi 4 mini doesn't wake up as scheduled, but also won't startup as I push the power button of the WittyPi. In both cases the red led just blinks shortly when startup time is reached or when I push the power button.

I have the 4 mini on top  of a Raspberry Pi Zero W v1.1, but it neither worked on a Raspi 4.

What is happening? Does anyone else had the same problem?

Hope te hear, thanks!

 
Posted : 10/11/2023 12:33 pm
(@admin)
Posts: 479
Member Admin
 Bart
(@katoendds-nl)
Posts: 11
Active Member Customer
Topic starter
 

Hi,

Thanks for your quick answer and will try what you suggested in the other post.

 
Posted : 10/11/2023 12:43 pm
 Bart
(@katoendds-nl)
Posts: 11
Active Member Customer
Topic starter
 

@admin Thanks! It worked! Strange thing is that I use an official 3A RaspberryPi poweradapter (and tried several ones). Alah, the capacitor worked!

Only thing that keeps on happening is:

[2023-11-10 11:20:01] [Warning] System and RTC time seems not synchronized, difference is 24s. System time is "2023-11-10 11:20:01 CET", while RTC time is "2023-11-10 11:20:25 CET". Please synchronize the time first.
[2023-11-10 11:20:01] Schedule next shutdown at: 2023-11-10 11:35:00
[2023-11-10 11:20:02] [Warning] System and RTC time seems not synchronized, difference is 24s. System time is "2023-11-10 11:20:02 CET", while RTC time is "2023-11-10 11:20:26 CET". Please synchronize the time first.
[2023-11-10 11:20:02] Schedule next startup at: 2023-11-10 11:45:00

I solved it though this script in beforeScript.sh, some sort of old syncTime.sh. Got it out of wittyPi.sh. Don't know if I need everything

[ -z $BASH ] && { exec bash "$0" "$@" || exit; }
#!/bin/bash
# file: wittyPi.sh
#
# Run this application synchronise time
#

# include utilities scripts in same directory
my_dir="`dirname \"$0\"`"
my_dir="`( cd \"$my_dir\" && pwd )`"
if [ -z "$my_dir" ] ; then
  exit 1
fi
. $my_dir/utilities.sh
. $my_dir/gpio-util.sh

if [ $(is_mc_connected) -ne 1 ]; then
  echo ''
  log 'Seems Witty Pi board is not connected? Quitting...'
  echo ''
  exit
fi


if [ $(is_mc_connected) -eq 1 ]; then
  firmwareID=$(i2c_read 0x01 $I2C_MC_ADDRESS $I2C_ID)
  firmwareRev=$(i2c_read 0x01 $I2C_MC_ADDRESS $I2C_FW_REVISION)
fi

# sleep 20

# interactive actions
# synchronize_with_network_time()
if $(has_internet) ; then
  log '  Internet detected, apply network time to system and Witty Pi...'
  net_to_system
  system_to_rtc
else
  log '  Internet not accessible, skip time synchronization.'
fi

 

Thanks!

Bart.

 
Posted : 21/11/2023 4:09 pm
Join Waitlist We will inform you when the product arrives in stock. Please leave your valid email address below.