#664 in Portable audio & video products

Reddit mentions of Veho VSS-001-360 Rechargeable Pop Up Speaker For All Smartphones, iPods and MP3 Players

Sentiment score: 1
Reddit mentions: 1

We found 1 Reddit mentions of Veho VSS-001-360 Rechargeable Pop Up Speaker For All Smartphones, iPods and MP3 Players. Here are the top ones.

Veho VSS-001-360 Rechargeable Pop Up Speaker For All Smartphones, iPods and MP3 Players
Buying options
View on Amazon.com
or
    Features:
  • Built in Li-Ion Rechargeable Battery giving up to 8 hours of constant playback
  • Compatible with ALL iPad/iPod/iPhone/MP3/Smartphones/Phones/Notebooks/Tablets or anything else with a 3.5mm headphone socket
  • Integrated storeable 3.5mm jack with dual volume control
  • Ultra Small with Pop Up and ultra portable with a BIG sound
  • Re-chargeable from PC/Mac or Mains using USB cable with USB Plug
Specs:
ColorBlack
Height1.25 Inches
Length2 Inches
Weight0.25 Pounds
Width2 Inches

idea-bulb Interested in what Redditors like? Check out our Shuffle feature

Shuffle: random products popular on Reddit

Found 1 comment on Veho VSS-001-360 Rechargeable Pop Up Speaker For All Smartphones, iPods and MP3 Players:

u/HolyCheezuzSonOfCod ยท 41 pointsr/raspberry_pi

Cheers, it was for my daughter's school project. She's 9 y/o. She drew up the design and designed the pseudo logic. I helped her with the wiring and python.

EDIT: Because a few people have asked for the project code etc. I've added it below.

Setup

The latest official Raspbian Buster Lite (2019-09-26) was used on an old Raspberry Pi 1a and worked perfectly out of the box for me.

I used a Veho 360 M1 Portable Capsule Speaker connected to the main audio out jack, and powered from the secondary USB power output on an old Anker Astro3 10000mAh similar to this one. It runs the setup for about 12 hours between charges. Also these battery packs have the added advantage of being chargeable while still powering any connected devices. So the diorama can stay running pretty much continuously even if you move it about and reconnect it somewhere or have it out on display where theres no main power outlets. I though this would be the most practical option for my daughters school project as they will put it on display in a main hall (Also her teacher just told me this morning that he wanted to be able to take it easily into other classrooms because it was the best project he'd ever seen in the school :D).

To configure the scripts on the RasPi, make sure to install omxplayer first. e.g. sudo apt update && sudo apt install omxplayer. Then once you have the script and service files in the correct locations, install it as a systemd service that runs at boot with:


sudo chmod +x /scripts/apollo11_mission_tv.py<br />
sudo chmod 644 /lib/systemd/system/apollo11_mission_tv.service<br />
sudo systemctl enable apollo11_mission_tv<br />
sudo systemctl start apollo11_mission_tv<br />
```<br />
<br />
You can quickly check it's working with ```sudo systemctl status apollo11_mission_tv```. <br />
<br />
Then you should be able to reboot and have it start automatically. You will know it worked because with the TV control panel power switch in the off position as soon as the RasPi is powered on the stars and green button on the front will light up and then automatically switch off when the script starts. <br />
<br />
The images used for the cutouts were from google and can be found very easily. <br />
<br />
<br />
I also took the liberty of creating a nice GPIO wiring diagram for you fine people. So here it is:<br />
<br />
## Apollo 11 TV Project GPIO Wiring Diagram<br />
![https://i.ibb.co/Ksc6FNG/apollo11-project-raspi-gpio-wiring-diagram.png](https://i.ibb.co/Ksc6FNG/apollo11-project-raspi-gpio-wiring-diagram.png)<br />
<br />
<br />
## Project Files:<br />
----------<br />
<br />
**/scripts/apollo11_mission_tv.py**<br />
```python<br />
#!/usr/bin/python<br />
<br />
import os<br />
import RPi.GPIO as GPIO<br />
from time import sleep<br />
<br />
# Global Vars<br />
POWER_ON=0<br />
<br />
# Inputs<br />
on_switch=15<br />
yellow_button=23<br />
orange_button=18<br />
green_button=22<br />
red_button=10<br />
<br />
# Outputs<br />
stars=14<br />
yellow_led=3<br />
orange_led=4<br />
green_led=2<br />
red_led=17<br />
neil_armstrong=24<br />
moon_lander=9<br />
<br />
# INITIALISE GPIO PINS<br />
GPIO.setmode(GPIO.BCM)<br />
GPIO.setwarnings(False)<br />
GPIO.setup((stars,yellow_led,orange_led,green_led,red_led,neil_armstrong,moon_lander), GPIO.OUT)<br />
GPIO.setup((on_switch,yellow_button,orange_button,green_button,red_button), GPIO.IN, pull_up_down=GPIO.PUD_DOWN)<br />
<br />
def jfk_speech():<br />
    timeout = int(36)<br />
    GPIO.output((stars,yellow_led,orange_led,green_led,red_led,neil_armstrong,moon_lander),GPIO.HIGH)<br />
    os.system(&quot;omxplayer -o local --no-keys /sounds/jfk_moon_speech.mp3 2&amp;gt;&amp;amp;1 &amp;gt;/dev/null &amp;amp;&quot;)<br />
    sleep(2.5)<br />
<br />
    while timeout != 0:<br />
        GPIO.output((stars,orange_led,green_led,red_led),GPIO.HIGH)<br />
        sleep(0.7)<br />
        GPIO.output((stars,orange_led,green_led,red_led),GPIO.LOW)<br />
        sleep(0.3)<br />
        timeout = int(timeout-1)<br />
<br />
    GPIO.output(stars,GPIO.HIGH)<br />
    GPIO.output((yellow_led,orange_led,green_led,red_led,neil_armstrong,moon_lander),GPIO.LOW)<br />
<br />
def the_eagle_has_landed():<br />
    GPIO.output(orange_led,GPIO.HIGH)<br />
    os.system(&quot;omxplayer -o local --no-keys /sounds/the_eagle_has_landed.mp3 2&amp;gt;&amp;amp;1 &amp;gt;/dev/null &amp;amp;&quot;)<br />
    sleep(2.5)<br />
    GPIO.output(moon_lander,GPIO.HIGH)<br />
    sleep(2.5)<br />
    GPIO.output(moon_lander,GPIO.LOW)<br />
    sleep(0.5)<br />
    GPIO.output(moon_lander,GPIO.HIGH)<br />
    sleep(1)<br />
    GPIO.output(moon_lander,GPIO.LOW)<br />
    sleep(0.5)<br />
    GPIO.output(moon_lander,GPIO.HIGH)<br />
    sleep(2)<br />
    GPIO.output(moon_lander,GPIO.LOW)<br />
    sleep(0.27)<br />
    GPIO.output((yellow_led,green_led,red_led),GPIO.HIGH)<br />
    sleep(3.3)<br />
    GPIO.output((yellow_led,green_led,red_led),GPIO.LOW)<br />
    sleep(0.3)<br />
    GPIO.output((yellow_led,green_led,red_led),GPIO.HIGH)<br />
    sleep(1.5)<br />
    GPIO.output((yellow_led,green_led,red_led),GPIO.LOW)<br />
    sleep(0.2)<br />
    GPIO.output((yellow_led,green_led,red_led),GPIO.HIGH)<br />
    sleep(1.3)<br />
    GPIO.output((yellow_led,green_led,red_led),GPIO.LOW)<br />
    sleep(0.2)<br />
    GPIO.output((yellow_led,green_led,red_led),GPIO.HIGH)<br />
    sleep(1)<br />
    GPIO.output((yellow_led,green_led,red_led),GPIO.LOW)<br />
    GPIO.output(orange_led,GPIO.LOW)<br />
<br />
def step_off_the_ladder():<br />
    GPIO.output(green_led,GPIO.HIGH)<br />
    os.system(&quot;omxplayer -o local --no-keys /sounds/gonna_step_off.mp3 2&amp;gt;&amp;amp;1 &amp;gt;/dev/null &amp;amp;&quot;)<br />
    sleep(2.5)<br />
    GPIO.output(moon_lander,GPIO.HIGH)<br />
    sleep(2.2)<br />
    GPIO.output(moon_lander,GPIO.LOW)<br />
    GPIO.output(green_led,GPIO.LOW)<br />
<br />
def one_small_step():<br />
    GPIO.output(red_led,GPIO.HIGH)<br />
    os.system(&quot;omxplayer -o local --no-keys /sounds/one_small_step.mp3 2&amp;gt;&amp;amp;1 &amp;gt;/dev/null &amp;amp;&quot;)<br />
    sleep(2)<br />
    GPIO.output(neil_armstrong,GPIO.HIGH)<br />
    sleep(1)<br />
    GPIO.output(neil_armstrong,GPIO.LOW)<br />
    sleep(0.5)<br />
    GPIO.output(neil_armstrong,GPIO.HIGH)<br />
    sleep(1)<br />
    GPIO.output(neil_armstrong,GPIO.LOW)<br />
    sleep(2)<br />
    GPIO.output(neil_armstrong,GPIO.HIGH)<br />
    sleep(1)<br />
    GPIO.output(neil_armstrong,GPIO.LOW)<br />
    sleep(0.5)<br />
    GPIO.output(neil_armstrong,GPIO.HIGH)<br />
    sleep(2)<br />
    GPIO.output(neil_armstrong,GPIO.LOW)<br />
    GPIO.output(red_led,GPIO.LOW)<br />
<br />
def mission_sound():<br />
    GPIO.output((stars,yellow_led,orange_led,green_led,red_led,neil_armstrong,moon_lander),GPIO.HIGH)<br />
    os.system(&quot;omxplayer -o local --no-keys --vol -3500 /sounds/mission_audio.mp3 2&amp;gt;&amp;amp;1 &amp;gt;/dev/null &amp;amp;&quot;)<br />
<br />
def poweron_tv():<br />
    os.system(&quot;omxplayer -o local --no-keys /sounds/tv_on_sound.mp3 2&amp;gt;&amp;amp;1 &amp;gt;/dev/null &amp;amp;&quot;)<br />
    sleep(2)<br />
    mission_sound()<br />
<br />
def poweroff_tv():<br />
    os.system(&quot;pkill omxplayer &amp;amp;&amp;amp; omxplayer -o local --no-keys /sounds/tv_off_sound.mp3 2&amp;gt;&amp;amp;1 &amp;gt;/dev/null &amp;amp;&quot;)<br />
    sleep(2)<br />
<br />
def tv_on():<br />
    global POWER_ON<br />
    if POWER_ON == 0:<br />
        poweron_tv()<br />
        POWER_ON = 1<br />
    if GPIO.input(yellow_button) == GPIO.HIGH:<br />
        jfk_speech()<br />
    elif GPIO.input(orange_button) == GPIO.HIGH:<br />
        the_eagle_has_landed()<br />
    elif GPIO.input(green_button) == GPIO.HIGH:<br />
        step_off_the_ladder()<br />
    elif GPIO.input(red_button) == GPIO.HIGH:<br />
        one_small_step()<br />
<br />
def tv_off():<br />
    global POWER_ON<br />
    if POWER_ON == 1:<br />
        poweroff_tv()<br />
        POWER_ON = 0<br />
    GPIO.output((stars,yellow_led,orange_led,green_led,red_led,neil_armstrong,moon_lander),GPIO.LOW)<br />
    sleep(1)<br />
<br />
while True:<br />
    if GPIO.input(on_switch) == GPIO.HIGH:<br />
        tv_on()<br />
    elif GPIO.input(on_switch) == GPIO.LOW:<br />
        tv_off()  <br />
<br />
    sleep(0.1)<br />
<br />
GPIO.cleanup()<br />
<br />
```<br />
<br />
**/lib/systemd/system/apollo11_mission_tv.service**<br />
```bash<br />
[Unit]<br />
Description=Apollo 11 Mission TV systemd service.<br />
<br />
[Service]<br />
Type=simple<br />
ExecStart=/usr/bin/python /scripts/apollo11_mission_tv.py<br />
<br />
[Install]<br />
WantedBy=multi-user.target<br />
<br />
```<br />
<br />
**/sounds/**<br />
All of the sounds were edited and converted to mp3 using the [Free Audacity Audio Software](https://www.audacityteam.org/)<br />
The original sound files were downloaded from [nasa sounds here](https://www.nasa.gov/mission_pages/apollo/apollo11_audio.html) &amp;amp; [old tv sounds here](https://freesound.org/people/efellow/downloaded_sounds/?page=2).