Mandalorian Mercs Costume Club

Mandalorian Armor => Equipment & Accessories => Electronics => Topic started by: LightningLion on Jul 07, 2017, 10:25 AM

Title: Lion's electronics corner
Post by: LightningLion on Jul 07, 2017, 10:25 AM
Lion's electronics corner
As you might know, I'm a bit into electronics, and decided to publish all my projects on one thread.

I'm not a very inventive person, so any ideas you have or something you'd like to see built I'd love to hear an attempt them. Also if you need help with anything, I can help you too.


Displays

Recently I got an OLED display and I've been playing with some ideas. My main goal would be to integrate it on a rangefinder stalk.
For these I'm using a cheap 128x64 display, with Adafruit SSD1306 libraries.
Important note: I have yet to make a lot of tests, but for some reason these very simple interfaces consume A LOT of Arduino's memory.

TRAMP copycat
Like I said, I'm not very creative. TRAMP display is what made me interested on these little screens and so my project was to replicate it.

X-Wing instrument panel display
Not entirely happy with it, movement should be smoother.

Blaster ammo counter and light kit
I think this might be a cool project for all those converted nerf guns. Would be even better if it had sound. I'll work on that.

Rangefinder display screen

Decorative display for the rangefinder of my future Mandalorian helmet. Bit useless 'cause it's too close to my face and my eyes can't focus the screen properly. The distance indicator needs a lot of work to look realistic.

LED effects

Jynn Erso's NERF gun sequence
Copied the Jynn Erso's NERF gun light effect (referene here (https://www.youtube.com/watch?v=9omobonwdIc)). When shooting, theres a light sequence moving forward along the barrel of the blaster. I don't know what it does when you press the trigger multiple times, but what I wanted to do was to concatenate shots and be able to shift multiple lights.

Same concept, but with a WS2812 LED strip.

LED Ammo counter
An ammo counter, (4 green, 2 yellow and 2 red LEDs) idea by Hik'aari Kelborn.

Wireless Rangefinder controller


This is a Boba/Jango Fett rangefinder, controlled wirelessly by two buttons: one up, and one down. It can achieve 3 positions:
Vertical (starting point). Facing backwards, as Jango Fett does. Facing forward, with custom blink sequence (I have no clue on which sequence is the correct one, so I made one I like).

Transmitter has a "power saving" mode, it's on stad by until you push one of the buttons. Next thing would be add that for the receiver too. And then a channel selector so one Mando control doesn't move other Mandos rangefinders .

*Mod Edit to remove external sales link*
Title: Re: Lion's electronics corner
Post by: LightningLion on Jul 11, 2017, 08:30 AM
Small improvement. Added a "loading" animation when it's switched on, and moved the remaining shots counter a bit to the bottom. Now I think it needs more Aurebesh, but that might be difficult to implement on the counter.
Title: Re: Lion's electronics corner
Post by: Wompet on Jul 11, 2017, 10:27 AM
Next thing would be add that for the receiver too. And then a channel selector so one Mando control doesn't move other Mandos rangefinders .
But imagine the reactions when everyone's rangefinders activate at the same time!  :o
Title: Re: Lion's electronics corner
Post by: LightningLion on Jul 11, 2017, 10:31 AM
Mmm, if I ever mass-produce them I'll leave a backdoor in the code so I have a ahve a masterkey to control al servos mwahahaha.

I wonder if that ever happened, but I try to be ten steps ahead.
Title: Re: Lion's electronics corner
Post by: LightningLion on Jul 14, 2017, 06:35 PM

Decorative display for the rangefinder of my future Mandalorian helmet. Bit useless 'cause it's too close to my eye to focus on the screen correctly. The distance indicator needs a lot of work to look realistic.
Title: Re: Lion's electronics corner
Post by: Gol Nazyne Vizsla on Jul 14, 2017, 07:50 PM
Sooo cool!!!
Title: Re: Lion's electronics corner
Post by: MadCelt on Jul 15, 2017, 08:01 PM
SHUT UP AND TAKE MY CREDITS!!!

The rangefinder screen and ammo counter are brilliant!
I see upgrades incoming...
Title: Re: Lion's electronics corner
Post by: LightningLion on Jul 15, 2017, 09:02 PM
Thanks! Any ideas you have, I'd love to hear them.
Title: Re: Lion's electronics corner
Post by: Tycho Kymeri on Jul 17, 2017, 05:23 PM
What are you using to program these?
Title: Re: Lion's electronics corner
Post by: LightningLion on Jul 17, 2017, 05:43 PM
What are you using to program these?

Arduino IDE, Adafruit SSD1306 libraries, Arduino Nano and a cheap 128x64 OLED display.
Title: Re: Lion's electronics corner
Post by: Tycho Kymeri on Jul 17, 2017, 05:59 PM
So the display is designed by IDE and the SSD1306 Libraries? Or do you use something like Illustrator?
Title: Re: Lion's electronics corner
Post by: LightningLion on Jul 17, 2017, 07:12 PM
So the display is designed by IDE and the SSD1306 Libraries? Or do you use something like Illustrator?

Ah, no. I draw the interface with MS Paint and convert it to an array of bytes with LCDAssistant. Then you can put it on your Arduino memory and draw the bitmap with one of the commands of the SSD library.
Title: Re: Lion's electronics corner
Post by: aforklikeutensil on Jul 19, 2017, 11:14 AM
 :o  Looks great.  Nice work, vod.
Title: Re: Lion's electronics corner
Post by: Daxar Arkada on Aug 07, 2017, 06:50 PM
I'm so in on this, my credits you shall have.
Title: Re: Lion's electronics corner
Post by: LightningLion on Aug 08, 2017, 02:13 AM
First time using PORT manipulation instructions with an Arduino. Copied the Jynn Erso's NERF gun light effect (referene here (https://www.youtube.com/watch?v=9omobonwdIc)). When shooting, theres a light sequence moving forward along the barrel of the blaster. I don't know what it does when you press the trigger multiple time, but I wanted to do was to concatenate shots and be able to shift multiple lights.

I'm so in on this, my credits you shall have.
Thanks for the interest. I'd really like to "monetize" some of my ideas so I could have some extra money to invest on my Mando/Arduino builds, but I haven't figured a "fair" way to do it yet.
Title: Re: Lion's electronics corner
Post by: Hik'aari on Aug 09, 2017, 12:44 PM
Have you given any consideration to using things like WS2812B LED strips? Could then adjust the colour through the pulse and completely controllable via arduino.

If interested I shall share some work I did with them earlier in the year.
Title: Re: Lion's electronics corner
Post by: LightningLion on Aug 09, 2017, 01:04 PM
For this last idea, or in general terms? In any case, I didn't even think on them  so I'll read about it. Thanks!

EDIT: Ok, I've read a bit and they seem easy to use, will get some.
Title: Re: Lion's electronics corner
Post by: Hik'aari on Aug 11, 2017, 04:36 AM
Just in general terms. They are really easy to use and would be perfect for the scrolling light.

I used them to create "stars" for a friend who was making a dress with a "stars" theme. We put them into the dress so they randomly lit up a random number of lights for a random amount of time behind the fabric. 300 LEDs being driven from a  Nano Arduino clone. Arduino is powered from a 9V battery and the two strings of LEDs from 2x USB power bricks

(http://i.imgur.com/c2b88AU.jpg)
Title: Re: Lion's electronics corner
Post by: LightningLion on Aug 11, 2017, 06:59 PM

3D printed the Boba Fett rangefinder to continue working on the display. As you can see, it fits inside of what should be the perspex block. Will probably use a small Li-ion battery to power everything because 4 wires are a bit too much.
Title: Re: Lion's electronics corner
Post by: LightningLion on Oct 12, 2017, 10:40 AM
Have you given any consideration to using things like WS2812B LED strips?


Finally received my strip of WS2812 LEDs for testing. They're cheap, apparently easy to use and offer tons of possibilities. Thanks for the suggestion!
Title: Re: Lion's electronics corner
Post by: Hik'aari on Oct 12, 2017, 12:57 PM
Glad to see you like them :)

With a bar like that you could do something like


[Green]
[Green]
[Green]
[Green]
[Yellow]
[Yellow]
[Yellow]
[Red]
[Red]


Then as you click the "trigger" every X clicks turns off a light (top to bottom) to simulate an energy pack depleting. Then with a secondary button (perhaps at the bottom of the stock) it refills as if reloaded.

This has been on my list of things to try, and I really should order some more LEDs.... hmm I think I know what my next project will be come payday
Title: Re: Lion's electronics corner
Post by: jc27 on Oct 14, 2017, 03:27 PM
Lion, I would love to know how you did the rangefinder display, do you have any info or tutorials on how it works? I know a bit about using arduino, but stuff like your rangefinder display is new to me.
Title: Re: Lion's electronics corner
Post by: LightningLion on Oct 14, 2017, 04:41 PM
How good are you at coding?

I use and OLED display (128x64 pixels resolution, I2C protocol) and an Arduino Pro Mini.

For programming, the Adafruit SSD1306 library (I think). Download, read examples and read how the library works internally. Then find some tutorials on your language. And read how to use LCAssistant. There are basically a bunch of commands to learn if you use Adafruit's library.

The thing is, Arduino's memory is really low. You'll need to be creative to  make everything fit and work.
Title: Re: Lion's electronics corner
Post by: LightningLion on Oct 15, 2017, 02:23 PM
Then as you click the "trigger" every X clicks turns off a light (top to bottom) to simulate an energy pack depleting. Then with a secondary button (perhaps at the bottom of the stock) it refills as if reloaded.


Something like this you mean?  :P
Sorry for the aweful quality, was the only way I could get the camera to "see" the LEDs.
Title: Re: Lion's electronics corner
Post by: Hik'aari on Oct 16, 2017, 03:08 PM
Exactly something like that :P
I actually ordered up my LED strip the other day after posting it to do this very endevour
Title: Re: Lion's electronics corner
Post by: 11DimSpaceWhale on Oct 20, 2017, 06:24 PM
That ammo counter is awesome! Exactly like something I hope to do. Want to customize sounds too and put in a blaster noise and reload charge.
Title: Re: Lion's electronics corner
Post by: Netra Kar on Jan 24, 2018, 11:40 AM
Hi Lion!
I have the same 4 pin display and an arduino nano clone. Can you send me the code for the tramp please?
Title: Re: Lion's electronics corner
Post by: A'den Shevla on Jan 24, 2018, 11:55 AM
 :o

Im totally jealous about your skills. The Rangefinder LCD Display is totally awesome and give
your Kit a special detail, everybody is searching for.

If you gonna start to sale kind of this, give me a hint =)
Title: Re: Lion's electronics corner
Post by: LightningLion on Jan 24, 2018, 12:24 PM
:o

Im totally jealous about your skills. The Rangefinder LCD Display is totally awesome and give
your Kit a special detail, everybody is searching for.

If you gonna start to sale kind of this, give me a hint =)

IF I ever have a kit hahaha. I'm just too lazy for the path I chose (pepakura helmet).
In the last months I worked on a display that I'm very proud of, like 10 times better than the RangeFinder. Designed it for an MMCC member, hope we can finish it soon and show it to you all.
And it doesn't require that much of skill. Just knowing the basics of Arduino, hours in MS Paint drawing pixels (for real) and then transfer it to a more or less optimized program. The hardest part is to be creative enough to mix many different parts in one program (charts, bar graphs, drawings, etc) working at the same time.

I'd really like to have more time to sell/trade this for other cosplay pieces, but my job and main hobbies consume a ton of time.
Title: Re: Lion's electronics corner
Post by: Thrantusix on Jan 25, 2018, 10:39 AM
AMAZING WORK!
Title: Re: Lion's electronics corner
Post by: levi.peterson94 on Jul 06, 2018, 08:50 AM
hey lion, I'm wanting to do a environmental pack that has different sensors like temperature and stuff that's gets displayed somehow, would Arduino and these displays work for that project?? thanks for any help!
Title: Re: Lion's electronics corner
Post by: LightningLion on Jul 07, 2018, 04:57 AM
Yes, of course. But if you need to use multiple displays, you'll need each of those to have different addresses to send stuff to the propper one. I have yet to try that. Also, memory on the Arduino is another critical factor. Each drawing you want to display consumes a lot.
Title: Re: Lion's electronics corner
Post by: LightningLion on Jan 13, 2019, 08:26 AM
Aliens Colonial Marine M41A pulse rifle SFX and light board.
One switch is for the trigger, and the other is for the inserted ammo box (that's why it need to be held down).
Althought not Star Wars related, learning how to work with LED's, segment displays and sound boards is always interesting for all blaster projects.
Title: Re: Lion's electronics corner
Post by: LightningLion on Oct 23, 2019, 04:27 AM

Been a while since I last posted. Honestly, I got bored of the whole "bondo, sanding, you didn't get to fix it, repeat" and quitted working on my helmet. So in the spare-time I got on my job, I been learning a bit of Arduino coding. The idea is to make an app that controls everything on my hypothetical helmet from one of my gauntlets.
For that I'm using Bluetooth serial communication (big battery eater I guess) between my Android phone and an Arduino IDE compatible board (ESP32).

I know there aren't canon references of interior helmet lights, but it's a nice exercise to practice and I think it's cool la Samus Aran helmet.
The app features a colour selector for the lights, brightness level and different animations (fixed colour, breathing effect and rainbow cycling).
The other feature is displaying videos, hardcoded testing, have yet to make it load them from a folder.

My ideas for the future:
-Servo rangefinder control.
-Setting up helmet fans.
-Controlling an OLED display like the ones I've posted before.
-Change everything to Bluetooth 4.0 (Bluetooth Low Energy/LE) for battery saving.
Title: Re: Lion's electronics corner
Post by: haamyc cuyan on Nov 30, 2019, 07:44 PM
Glad to see you like them :)

With a bar like that you could do something like


[Green]
[Green]
[Green]
[Green]
[Yellow]
[Yellow]
[Yellow]
[Red]
[Red]


Then as you click the "trigger" every X clicks turns off a light (top to bottom) to simulate an energy pack depleting. Then with a secondary button (perhaps at the bottom of the stock) it refills as if reloaded.

This has been on my list of things to try, and I really should order some more LEDs.... hmm I think I know what my next project will be come payday
could use magnets that transfer the power and signal to removable magazines with LEDs to do the count down for like a blaster?
Title: Re: Lion's electronics corner
Post by: LightningLion on Dec 02, 2019, 05:21 AM
Sure, why not. Thing like this exists afterall:
(https://i.imgur.com/nexK0lq.jpg)

Another (cheaper) option would be using magnets for positioning, but having normal contacts pressed against each other.
Title: Re: Lion's electronics corner
Post by: LightningLion on Feb 21, 2020, 02:21 PM

I want to share with you something that I made long ago but never remembered to post. If you like my stuff, I might consider doing comissions.

It's a gauntlet display for an U-Wing mando pilot.
There's a button to open/close the wings.
The display doesn't follow a fixed sequence, but uses randomly generated numbers instead.
Upper left simulates readings of the hyperdrive.
Upper-center is the ship designation (UT-60D) in mandalorian.
Mid-lef, the beskar diamond shows the shields level.
Bottom-left 2 "leds" show which side door is opened (this ship has repeating blasters on both sides).
Mid-right is for the overload of the cannons (designation KX7).

Periodically, the Arduino "rolls a die" to check if it's time to simulate a firefight. During combats, wings open (and sometimes doors) and Arduino keeps rolling dices to simulate impacts and lower the shields. Also the heating level on the KX7 cannons change independently.
After combat, shields regenerate and cannons cool down.
Title: Re: Lion's electronics corner
Post by: mikehall419 on Feb 21, 2020, 02:37 PM
Hey! Would you be willing to sell the code, and any additional programming so I could buy the components and build my own?
Title: Re: Lion's electronics corner
Post by: LightningLion on Jun 15, 2020, 06:14 PM

I return a year later to the Android/Arduino project, covid got me some time to tinker. If you already saw the previous posts, you could skip the first demos.
What's new:
-Fan control. Concept works, final version will requiere some test & trials with hardware (fans, buck converters, etc).
-Servo control. 0, 90 and 180 degrees. Can control (not pictured) up to two servos, separately or at the same time.

Upcoming: Some servo parameter configuration, as each one is different.
Title: Re: Lion's electronics corner
Post by: LightningLion on Aug 22, 2020, 10:02 AM

Have  you ever thought "Ok, that chest display is nice but I don't want to buy one for each animation"?
Well I did, and that's why this project started a while ago, and these past days I had some time to work on it again.

Please excuse the potato quality. I'm working 12h shifts in another country and that leaves me a good amount of time to program. That's also the reason you don't see 7 segment displays, 'cause I didn't feel like packing too much electronic stuff into the airplane.

So, to summarize: It's an Arduino with a micro SD slot where you put a file with the animation sequence in a file called sequence.ini.
To help everyone customizing the sequence of their choice I also made a simple Windows program that lets you toggle on/off the different elements, generates the sequence and then exports it to the .ini file.

Next step is making it with real 7 segment displays, then designing the electronic boards and finally, production.

I also made some extra progress on the Arduino/Android app: Now I'm able to input servo's specs and define to which degrees the rear, up and front buttons will move the servos.
Title: Re: Lion's electronics corner
Post by: LightningLion on Oct 18, 2020, 02:25 PM

A quick onde-day build to learn how to use fonts with displays. It eats a great amount of an Arduino's memory, no wonder why MandoPuter uses more powerful boards.
A colored 1.15" display (pre-Beskar gauntlet) or 1.3" (Beskar gauntlet) would look better, but this was dirt cheap (under 20$).

And in other news, I finished designing the board for the customizable Fett Chest display and is now in production. Will post updates in a few weeks.
Title: Re: Lion's electronics corner
Post by: LightningLion on Oct 25, 2020, 02:34 PM

Turns out not all symbols on Din's gauntlet are from Mando'a, so using fonts isn't an option... Anyway, after re-watching frame by frame multiple scenes I came to the conclusion that, while the character combination stays the same, the time and order of the sequence is totally random (or at least impossible for me to find those without looking at the real prop). So here's my attempt of a more accurate display.
Title: Re: Lion's electronics corner
Post by: LightningLion on Oct 27, 2020, 01:43 PM

I stand corrected! Actually the Mando'a alphabet got a bit of a redesign for Clone Wars, so after finding the new font online (thanks AurekFonts!) I redid the characters and here's the V1.1. I'll probably make a run of these.