3D Printing

Posted on Updated on

I have been busy on many projects lately and did not have time to report anything.

Today, I share the first power on and printing test of my new 3D printer.

I had the idea for a while to make a sla 3D printer using UV led and LCD screen mask. While browsing the net, I found this printer at very reasonable price. I decided to buy one. The machine is from Micromake. Micromake L1.

Micromake L1

The printer arrived well packed. The kit included the machine, power supply, 500 ml of resin.

It runs with Creation Workshop and photonic3d. I used for the first test Creation Workshop.

The connection and setting is fairly easy. Nothing special. Install a driver if necessary. Set the second screen on the main system and voila.

I had to run 5 tests before getting something okay. All 4 first tests, the printing was not sticking to the base. I just randomly increased the UV curing time and the 5th test shape was just fine.

Some photos…

20171126_173545

Last printing…

20171126_173725.jpg

Conclusion: Good surprised, it just works fine.

Advertisements

dweet.io – Simple Android application

Posted on

I discovered a bit late this nice and simple messaging for iot. dweet.io

Here is a simple application developed with AI2 to read your latest dweet…

Application aia

Application apk

The app is simple, but can be used to go further into development like getting some reading, alarms…

2017-06-11 14_43_45-MIT App Inventor

Enjoy…

Arcade Game

Posted on Updated on

I haven’t finished my pinball yet and then looking at other things… While browsing, I came across this nice cabinet and decided to get one. It looks nice and well done.

At the same time I purchased a Pandora’s box 680 in 1. (Jamma Box)

Result in few days…

I bought the cabinet from this shop in China. Only delivery in China.

 

Artnet, WS2812 and ESP8266 (Arduino IDE)

Posted on Updated on

From my previous post I have updated the program to be compiled from Arduino IDE.

#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#include <Adafruit_NeoPixel.h>

#define WSout 5                                     // Pin D1
#define ARTNET_PORT 6454

#define PIXELCOUNT 100


byte hData[318];

const int number_of_channels=300; //512 for 512 channels

const char* ssid     = "";
const char* password = "";

Adafruit_NeoPixel pixels = Adafruit_NeoPixel(PIXELCOUNT,WSout,NEO_GRB+NEO_KHZ800);

WiFiUDP udp;


IPAddress local_ip(192, 168, 1, 190);
IPAddress gateway_ip(192, 168, 1, 1);
IPAddress subnet_ip(255, 255, 255, 0);

void setup() {
  
  Serial.begin(115200);
  delay(100);
  Serial.println();
  Serial.print("Connecting to ");
  Serial.println(ssid);

  WiFi.begin(ssid, password);
  WiFi.config(local_ip, gateway_ip, subnet_ip);

  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }

  udp.begin(ARTNET_PORT); // Open ArtNet port

  Serial.println("");
  Serial.println("WiFi connected");
  Serial.println("IP address: ");
  Serial.println(WiFi.localIP());


pixels.begin();

  for(byte i=0;i<PIXELCOUNT;i++){
    pixels.setPixelColor(i, Color(0,0,0));
  }
  pixels.show();
  
}

void loop() {
  if (udp.parsePacket()) {
    udp.read(hData, 318);
   // pixels.setPixelColor(0, Color(hData[19], hData[20],hData[21]));
  for ( int n=0; n<100; n++){   
     pixels.setPixelColor(n, Color(hData[(n * 3) + 19], hData[(n *3)+20],hData[(n *3)+21]));
    }
   pixels.show();
  }
}

uint32_t Color(byte r, byte g, byte b){
  uint32_t c;
  c = r;
  c <<=8;
  c |= g;
  c <<= 8;
  c |= b;
  return c;
}

The WS2812 data line is connected to D1 from the NODEMCU board.

NODEMCU_D1

Config of the Arduino IDE

config_arduino_1

It looks like it work better than the code in Lua.

This comes from a similar program I did few years ago to run 10 matrices of 10 x 10 pixels. I was using WS2801 led stripes, arduino UNO and ethernet shield.

Everything still runs smooth untill now.

Some photos of matrix installed and the controller running JINX.

Artnet, WS2812 and ESP8266 (Lua)

Posted on Updated on

From my previous post on Artnet ESP8266, I had some feedback about some trouble. I decided to make it again but with the WS2812.

2017-05-21 11_49_58-NodeMCU custom builds

Once compiled you will receive an email with a link to download the firmware.

Upload the firmware with Nodemcu flasher and change the path to point to the custom firmware

2017-05-21 16_01_25-Open2017-05-21 16_01_56-nodemcu

With Esplorer, upload this program:

2017-05-21 16_10_41-ESPlorer v0.2.0-rc5 by 4refr0nt

wifi.setmode(wifi.STATION)
wifi.sta.config("*****","*****",1)
tmr.delay(5000000)   -- wait 1,000,000 us = 1 second
print(wifi.sta.getip())
print("Running")
gpio.mode(4, gpio.OUTPUT)
ws2812.init()
tmr.delay(1000000)
ws2812.write(string.char(0,0,0):rep(100))
s=net.createServer(net.UDP)
s:on("receive",function(s,c) ws2812.write(string.sub (c, 19, 318)) end)
s:listen(6454)

I am driving a Matrix (10*10) of 100 pixels.

In the UDP loop, I am extracting the 300 bytes (19 to 318) corresponding to each RGB values of each pixels; 3 * 100. Bytes 1 to 18 are the Artnet header.

The led stripe is connected to PIN D4 of my NODEMCU Board

nodemcu_D4

Forgot to mention that a fast wifi router is needed.

Enjoy…

ESP8266+18650

Posted on Updated on

The other day I came across this nice stuff; A board with an ESP8266, a battery 18650 holder and a charging circuit. Really cool stuff.

I bought a couple of them.

I flashed it using the nice firmware ESPURNA. The firmware is a great piece of code. Thanks for that. GrĂ cies Xose.

An interesting thing about ESPURNA is about the way the web UI was compiled.

To install the libraries necessary to compile the code, please follow the wiki from the site. It is very explicit.

A screenshot of the Arduino IDE config folr the board

IDE_setting

It has been running a couple of days now and everything is smooth. Need to test the sleep mode because the battery is not lasting long, about 15 hours. Charging cycles are OK too.

Nice board.

Android – Photo loader

Posted on Updated on

I needed a quick and easy way to upload photos taken from my phone to a webserver without having to use cable, ftp transfer… (mainly for my job)
While browsing the App Inventor I found an application called photo booth and it gave me some ideas.
I modified a bit the app and used a php script to save the photos to the folder I want on my server.

The aia file for App Inventor 2.

The apk file.

The php script.

To use it:

  • Install the apk
  • Copy the php script into your server
  • Modify the php script. Change the folder name and location where you want to upload the photos
  • In the phone application, there are 2 text fields. One for the ip address and folder location of the php script. One for the photo name

Enjoy.