# Galactic Unicorn development

**URL:** <https://forums.pimoroni.com/t/galactic-unicorn-development/24549>\
**Category:** Support\
**Created:** [March 28, 2024, 2:25am UTC](https://forums.pimoroni.com/t/galactic-unicorn-development/24549 "2024-03-28T02:25:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![n0kx](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/n0kx/32/10717_2.png) [@n0kx](https://forums.pimoroni.com/u/n0kx)\
**Post date:** [March 28, 2024, 2:25am UTC](https://forums.pimoroni.com/t/galactic-unicorn-development/24549/1 "2024-03-28T02:25:25Z")

</div>

I have Thonny up and running and I’m able to open the default .py files off of the Galactic Unicorn, but when I try to run main.py in Thonny I get an error that says:

`ImportError: no module named ‘galactic’`

Is there a different way to run the script on the display? Or a way at all to test the code on the display?

Since this file came from the GU I’m assuming it’s ok, and the default demos run when it’s not in bootloader mode.

Edit: My Galactic Unicorn won’t turn on at all now. Even when plugged into a wall outlet. I also noticed that when I plug my GU back into my computer in bootloader mode, I have to reinstall MicroPython to connect to the GU.

Here is what I’m selecting:  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/7/7ca73739aaa0722d2eac0eab7b8b64899f78613d.png)

I then have to close Thonny and reopen for it to recognize the Raspberry Pi Pico/GU.

The default files, as well as a couple of new ones I added (green boxes), are still there. So that’s promising. The only thing I changed in ‘main.py’ was “PRESS” to “MASH” for the output. No functionality changes.

![image](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/c/c526b1562fcd81efc1ab3fcc03cff521291d1600.png)

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [March 28, 2024, 8:19am UTC](https://forums.pimoroni.com/t/galactic-unicorn-development/24549/2 "2024-03-28T08:19:23Z")

</div>

You don’t need to be in Bootloader Mode. Just plug it in without pressing any buttons. Then in Thonny select View \> Files.

---

<div class="post-metadata">

**Author:** ![hel](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/hel/32/6075_2.png) [@hel](https://forums.pimoroni.com/u/hel)\
**Post date:** [March 28, 2024, 1:10pm UTC](https://forums.pimoroni.com/t/galactic-unicorn-development/24549/3 "2024-03-28T13:10:45Z")

</div>

Looks like you’re using the vanilla Pico W version of MicroPython there which will be why it can’t find our libraries, you’ll need our custom one for Galactic.

If you’re installing it via Thonny it looks like this:

![image](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/4/4389f6d16269f2055e599c627cec8a07b84169c0.png)

---

<div class="post-metadata">

**Author:** ![n0kx](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/n0kx/32/10717_2.png) [@n0kx](https://forums.pimoroni.com/u/n0kx)\
**Post date:** [March 28, 2024, 4:58pm UTC](https://forums.pimoroni.com/t/galactic-unicorn-development/24549/4 "2024-03-28T16:58:54Z")

</div>

Ahh! That’s what I missed. Thank you!

---

<div class="post-metadata">

**Author:** ![n0kx](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/n0kx/32/10717_2.png) [@n0kx](https://forums.pimoroni.com/u/n0kx)\
**Post date:** [March 29, 2024, 3:24pm UTC](https://forums.pimoroni.com/t/galactic-unicorn-development/24549/5 "2024-03-29T15:24:47Z")

</div>

I’m looking for a small battery and possibly a decibel sensor that will work with my setup. Hopefully something to last 2-3 hours if unplugged.

Any products you’d recommend for that?

Also, I’m wanting to have the device controlled via a web application. What’s the best practice for communicating with the Raspberry Pi/Galactic Unicorn over the web?

It’ll retrieve a chunk of data at first, but really just be listening for any changes while running.

---

<div class="post-metadata">

**Author:** ![hel](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/hel/32/6075_2.png) [@hel](https://forums.pimoroni.com/u/hel)\
**Post date:** [April 2, 2024, 11:41am UTC](https://forums.pimoroni.com/t/galactic-unicorn-development/24549/6 "2024-04-02T11:41:52Z")

</div>

I’d probably use a [chunky LiPo battery](https://shop.pimoroni.com/products/lithium-ion-battery-pack) (or a [USB power bank](https://shop.pimoroni.com/products/nanowave-3-5000mah-usb-c-a-power-bank)).

Check out this forum thread for discussion of adding a microphone: [Adding microphone to Unicorns?](https://forums.pimoroni.com/t/adding-microphone-to-unicorns/22864) (though from what I remember, calculating decibels requires some non-trivial calculations!)

There’s some cool web projects here: [pimoroni-pico/micropython/examples/galactic\_unicorn at main · pimoroni/pimoroni-pico · GitHub](https://github.com/pimoroni/pimoroni-pico/tree/main/micropython/examples/galactic_unicorn#other-resources)

---

<div class="post-metadata">

**Author:** ![hel](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/hel/32/6075_2.png) [@hel](https://forums.pimoroni.com/u/hel)\
**Post date:** [April 2, 2024, 11:45am UTC](https://forums.pimoroni.com/t/galactic-unicorn-development/24549/7 "2024-04-02T11:45:33Z")

</div>

Some web examples here also: [pimoroni-pico/micropython/examples/cosmic\_unicorn at main · pimoroni/pimoroni-pico · GitHub](https://github.com/pimoroni/pimoroni-pico/tree/main/micropython/examples/cosmic_unicorn#other-resources)
