julisa99 / Lovebox

DIY project to lasercut a lovebox on your own (see https://en.lovebox.love/), which would cost almost $100.
https://lisaih.de/Lovebox/
MIT License
110 stars 45 forks source link

Hello with gist #7

Closed limitlesscorporation closed 3 years ago

limitlesscorporation commented 3 years ago

Hello,

first thanks for this amazing project.

Like you know chrismas coming :) and i want build this project for my girlfriend.

for the moment your program compil well and i have the message <3 LoveBox <3 appear on my screnn YESSS !!!!

But my probleme is about message on GIT.

I go to GIT i login , i click on "your gist" then i create new file name "test" inside i put that :

1 t hello

Like i understand (let me know if i'm wrong)

1) 1 --> your program see if différent number if yes he go to the net line to see if is "t" or someting else 2) t --> your program detect the message is a texte message but if we have another letter your programe detect img 3 ) hello --> message to show

so i've Two question if i'm correct on 1,2 and 3 why my message not appear ? My wireless works perfectly and i make my pat to my gist like this : myusernameGIT/420b6eb87445c1eb50fb365b28fb7503.js/raw/test maybe i mistake something ?

the second question can you explain me what you do exactly to show img.

for me i understant that :

1) 1 --> your program see if différent number if yes he go to the net line to see if is "t" or someting else 2) w --> your program detect the message is a texte message if we make "t" letter but if we have another letter your programe detect img 3 ) here i need make img ? or only the binary code 0001111 img convert on the website you give ?

Thanks for your amazing works and your help.

tfarrell22 commented 3 years ago

I will try to answer questions best I can, I also just finished this project for my girlfriend.

1) The answer to why your text isn't showing is because the path to your link is wrong. I think it's just

"/username/the gist ID(the long number)/raw"

I don't know if test is the name of the gist but as long as you have the gist ID(might be called something different) you don't need the name of it.

For me, my text took about 5 minutes or so to show up. So have some patience if it doesn't right away.

2) for the image, I haven't nailed this down exactly(my image shows up half of it or weird)

But the idea is: you take a black and white JPEG, and convert it using the link that was provided in the instructions. You have to set the pixel width to that of the OLED display( I think 128 pixels, I could be wrong) That will convert your black to 0s and your white to 1s. You then can copy this array of 1s and 0s to the gist in place of where the text would be.

Again, I'm having some issues with this I might just be selecting too complicated of images. But that's the idea and it's sorta working for me.

I hope this helps! Ask any other questions and I will try to answer

julisa99 commented 3 years ago

Hey @tfarrell22

The way you make the image into a string of 1s and 0s sounds right. Have you tried it with the example images here?

There I have set the height appropriately as well as the width. But yes, it also depends on your images, you can't display everything with 128 pixels. Maybe you look, how your picture would look with 128 pixel width.

Merry Christmas! 🤶🎄

julisa99 commented 3 years ago

Hey @limitlesscorporation

For example: const String _url = "/julisa99/caebd5ace5465e2a9df3d032f8ff3d24/raw/test.txt";

This will allow your Lovebox to find the following document: https://gist.githubusercontent.com/julisa99/caebd5ace5465e2a9df3d032f8ff3d24/raw/test.txt

Merry Christmas! 🎁🎄

limitlesscorporation commented 3 years ago

Hello all thanks for your answer.

@julisa99 i change the url path :

https://gist.githubusercontent.com/limitlesscorporation/bb8506ac3d5696f89a42936846557127/raw/audrey.txt

Like you can see it works.

And finally appear after 5 minutes on my screen

but now my servo does not move even though it was moving before

i'm lost hahah.

Ralphref commented 3 years ago

Julisa! Your work is amazing! I'm building this project for my fiancee and I'm sure she'll love it. I was having problems with the gist getting read and I was able to retrieve the example link you added, which was great because I thought my wmos wasn't cnnected to the internet.

I wanted to add, for some reason my light sensor is working on different values. I had to modify "if(lightValue > 600) { " from 300 to 600 for the servo to work properly. The only issue I keep having is that sometimes the lower part of the image will be messed up, I'll have to look that up.

Again, excellent work! I'm working on a 3d printed case for it, I'll upload the files once they are ready

julisa99 commented 3 years ago

@Ralphref

Great! If you have the files ready, I can gladly put them in the repo too 😃

For the image problem, it might help if you also check that the height is exactly 64 pixels. So that you use an image in the resolution 128x64. Maybe your image is higher and then it overwrites something or cuts it off.

julisa99 commented 3 years ago

@limitlesscorporation

Hmmm did you change the ID in the first line? The servo only moves when the Lovebox can retrieve a new message by checking the first line. It has to be different to the one before.

xSYOTOSx commented 3 years ago

I will try to answer questions best I can, I also just finished this project for my girlfriend.

since you just fished the project, did you have any issue uploading the program onto the WeMos? Im getting an error

"serial.serialutil.SerialException: could not open port 'COM4': FileNotFoundError(2, 'The system cannot find the file specified.', None, 2",

but i have no issue with my Arduino, so I'm a bit stumped.

tfarrell22 commented 3 years ago

@xSYOTOSx I'm sorry I don't really know how to solve that problem.

Is it possible the incorrect com port is selected for the Wemos?  If you're unsure of this, check any Wemos d1 mini tutorial on YouTube and most usually go through with showing you how to check the com port of the board.

Hope this can help!

ILohs commented 3 years ago

In my circuit the display will not show the text-massage. Wemos is logged into my WiFi. Are other hints for the first test possible? My question is the same like the top user, BR, Ingo

Solved by remark // oled.clear(); in setup()

julisa99 commented 3 years ago

@xSYOTOSx I researched your error message and my conclusion is that your board is broken, perhaps from a short circuit. Do you have another one to test this?

xSYOTOSx commented 3 years ago

@julisa99 That's what i ended up doing. Weird thing was, out of 5 boards, only two ended up working. This was the first WIFI project so it had me quite confused.