Because i’ve got a lot of emails during the last year with several questions about my MDB projects, i try to answer them here.
Making web uploads less painfull
For one of my current Flask projects i want to have a nice looking and easy to use file upload form.
That means no
<input type="file"> form field where i have to select each file and the upload it on at a time.
I came across this nice tutorial for a HTML5/jquery file uploader, but the backend is written in PHP.
So I decided to try to get this working with Flask and it was easier as I supposed :–)
I finally activated the Disqus comment system for my blog. I wanted to do this for a while now but was to lazy to do it :–)
I do a few webprojects with Flask and I love it!
While creating a template i searched for a way to call functions from within the template, and found out that i can use a
I have built a PCB drill that works nice most of the time, but sometimes it occurs that the stepper motor don’t perform a full turn.
Last Tuesday I’ve nearly finished the complete code for the MateDealer project. After I’ve successfully vended a Club Mate (that is the drink the MateDealer got it’s name from) I loged the MDB communication with my logic analyzer. I have taken a few screenshots of the logic trace and now i will try to explain the complete procedure.
Today I want to show you how I connected our vending machine to the Arduino Mega 2560. With a piece of stripboard i made a board that can be stacked on an Arduino like a real shield.
As you can see the board is really simple. It contain just 2 otocouplers to insulate the Arduino from the Vending machine controller, 2 resistors for the leds of each optocoupler and one as a pullup resistor. The values of the resistors might be not perfect, but for me those values worked fine all the time. The optocpuplers are PC814 types. The can be exchanged with other types if you dont have theese available. The board uses the UART1 for the communication. So I can use UART0 which is also used to program the Arduino to communicate with a PC. That has the nice effect that i can connect the Arduino with USB to the PC.
At the moment i work on finishing my code. As soon as i did that i will post another update with logic logs and a github link.
Today i want to present you a little bit Arduino code because i’ve searched a lot for a working telnet server to control I/O’s over network. The code is based on the “Examples – Ethernet – ChatServer”. So here is my version of the server:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
I’ve built a PCB drill that drills the holes from below through the PCB. Taking aim on to the solder pads will be done with a webcam. The start of a cycle is triggered with the help of a foot pedal, so that both hands can be used to fix the PCB in place. The lifting is performed by a stepper motor with a eccentric roll.
Here is the result:
I’ve written a few lines of python code for the webcam. Here is the video of the first test with software.