Login |  Register



Welcome
Welcome to engineeringdiy

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!


Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Intelligent DC-DC converter with USB interface
PostPosted: Tue Sep 27, 2016 6:15 pm 
Joined: Thu Sep 22, 2016 12:24 am
Posts: 57
http://www.mini-box.com/DCDC-USB?sc=8&category=981
This looks like it has promise. How hard do you wager that we could get this to convert to a micro usb output, and also able to signal a gpio?


Report this post
Profile  Offline
 
 Post subject: Re: Intelligent DC-DC converter with USB interface
PostPosted: Tue Nov 08, 2016 8:59 am 
Joined: Wed Sep 28, 2016 12:49 pm
Posts: 54
Thanks but what is the voltage of psw? or it is like a switch? with one input and one out?
issue resolved =)

Sorry It use the power in/out of the raspberry
psw it's like an relay =)


Report this post
Profile  Offline
 
 Post subject: Re: Intelligent DC-DC converter with USB interface
PostPosted: Wed Nov 09, 2016 2:48 am 
Joined: Thu Sep 22, 2016 12:24 am
Posts: 57
It uses the car ignition, and when you turn off the car, it sends a signal to the computer to shut down. You would likely have to write the shutdown script yourself, but it does give you a pretty strong power supply.


Report this post
Profile  Offline
 
 Post subject: Re: Intelligent DC-DC converter with USB interface
PostPosted: Wed Nov 09, 2016 4:22 am 
Joined: Wed Sep 28, 2016 12:49 pm
Posts: 54
yes it's my script I found on mausberry:

///////////////////////////////////////////////////////
#!/bin/bash

#this is the GPIO pin connected to the lead on switch labeled OUT
GPIOpin1=23

#this is the GPIO pin connected to the lead on switch labeled IN
GPIOpin2=24

#Enter the shutdown delay in minutes
delay=0

echo "$GPIOpin1" > /sys/class/gpio/export
echo "in" > /sys/class/gpio/gpio$GPIOpin1/direction
echo "$GPIOpin2" > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio$GPIOpin2/direction
echo "1" > /sys/class/gpio/gpio$GPIOpin2/value
let minute=$delay*60
SD=0
SS=0
SS2=0
while [ 1 = 1 ]; do
power=$(cat /sys/class/gpio/gpio$GPIOpin1/value)
uptime=$(</proc/uptime)
uptime=${uptime%%.*}
current=$uptime
if [ $power = 1 ] && [ $SD = 0 ]
then
SD=1
SS=${uptime%%.*}
fi

if [ $power = 1 ] && [ $SD = 1 ]
then
SS2=${uptime%%.*}
fi

if [ "$((uptime - SS))" -gt "$minute" ] && [ $SD = 1 ] && [ $power = 1 ]
then
poweroff
SD=3
fi

if [ "$((uptime - SS2))" -gt '20' ] && [ $SD = 1 ]
then
SD=0
fi

sleep 1
done
////////////////////////////////////////////////////////


Report this post
Profile  Offline
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests

Panel

Top You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Search for:
Jump to:  


cron
suspicion-preferred