ESP-01 + Arduino IDE + FTDI232

ESP01_bb

Atention: Power supply must be 3.3V!

Instructions for flashing/uploading sketches:

  1. Power on FTDI and make sure computer is detecting it
  2. Connect GPIO0 to Ground
  3. Power on power supply (3.3V)
  4. Upload sketch
  5. Power off power supply
  6. Disconnect GPIO0 from Ground
  7. Power on power supply

Try with BLINK example but change PIN 13 to PIN 2 to enable the BUILTIN_LED

ESP-12 + Arduino IDE + FTDI232

ESP-12_bb

Atention: Power supply must be 3.3V!

Instructions for flashing/uploading sketches:

  1. Power on FTDI and make sure computer is detecting it
  2. Connect GPIO0 to Ground
  3. Power on power supply (3.3V)
  4. Upload sketch
  5. Power off power supply
  6. Disconnect GPIO0 from Ground
  7. Power on power supply

Note: Most of tutorials have GPIO2 HIGH. On mine it doesn’t work, must be LOW

Try with BLINK example but change PIN 13 to PIN 2 to enable the BUILTIN_LED

Inkscape + Gcodetools + Laser

The simple way is the J Tech plugin:

Inkscape Laser Plug-In

With Inkscape Gcodetools plugin:

IMPORTANT: Every time you make any of the above steps you need to select the object (OK)

Image 1: after selecting the object, select 1st option “Object to Path”

Image 4: remove the line selected

Image 5: change “feed”. This is the speed of moving with laser ON. In my case I’m using a red laser from a DVD rom burning at 1.4mA to cut some black vinyl.

Attention on the parameters on the other images especially to the Z settings

On the last image you will generate the Gcode. BE SURE to select the “Path to Gcode” tab before Apply.

 

Nice article: https://www.norwegiancreations.com/2015/08/an-intro-to-g-code-and-how-to-generate-it-using-inkscape/

Arduino Nano + Easydriver + GRBL 9 + DVD Laser

Desactivar o PWM:

http://marco-difeo.de/2015/10/13/grbl-0-9j-running-your-laser-with-spindle-pin-on-off/

//#define VARIABLE_SPINDLE // Default enabled. Comment to disable.

Ligar o laser no pin12


Para o Homing funcionar é necessário:

  1. $20=1 (soft limits, bool)
  2. $21=1 (hard limits, bool)
  3. $22=1 (homing cycle, bool)
  4. $23=3 (homing dir invert mask:00000011) Porque os switchs não estão no ponto mais longe
  5. Desactivar o Homing do Z:
    // #define HOMING_CYCLE_0 (1<<Z_AXIS)
    #define HOMING_CYCLE_0 ((1<<X_AXIS)|(1<<Y_AXIS))
    // #define HOMING_CYCLE_1 ((1<<X_AXIS)|(1<<Y_AXIS))

Parametros do GRBL

$0=10 (step pulse, usec)
$1=25 (step idle delay, msec)
$2=0 (step port invert mask:00000000)
$3=0 (dir port invert mask:00000000)
$4=0 (step enable invert, bool)
$5=0 (limit pins invert, bool)
$6=0 (probe pin invert, bool)
$10=3 (status report mask:00000011)
$11=0.010 (junction deviation, mm)
$12=0.002 (arc tolerance, mm)
$13=0 (report inches, bool)
$20=1 (soft limits, bool)
$21=1 (hard limits, bool)
$22=1 (homing cycle, bool)
$23=3 (homing dir invert mask:00000011)
$24=25.000 (homing feed, mm/min)
$25=500.000 (homing seek, mm/min)
$26=250 (homing debounce, msec)
$27=1.000 (homing pull-off, mm)
$100=53.333 (x, step/mm)
$101=53.333 (y, step/mm)
$102=250.000 (z, step/mm)
$110=500.000 (x max rate, mm/min)
$111=500.000 (y max rate, mm/min)
$112=500.000 (z max rate, mm/min)
$120=10.000 (x accel, mm/sec^2)
$121=10.000 (y accel, mm/sec^2)
$122=10.000 (z accel, mm/sec^2)
$130=37.000 (x max travel, mm)
$131=37.000 (y max travel, mm)
$132=200.000 (z max travel, mm)


Outros

É necessário definir o ZERO (neste caso é na mesma posição que o homing)

Instalar a extensão no Inkscape: https://jtechphotonics.com/?page_id=2012

Os switch’s são ligados ao GND e ao pin correspondente e não necessita de resistencias.

 

ESP8266 (ESP-01) + FTDI232 Update fimware update on Linux

Download latest firmware:
https://drive.google.com/folderview?id=0B_ctPy0pJuW6d1FqM1lvSkJmNU0&usp=sharing

Download esptool:
https://github.com/themadinventor/esptool

IMPORTANT: ON FTDI232 CHANGE THE JUMPER TO 3.3V!

Connect like this:

(http://www.instructables.com/id/Low-cost-WIFI-temperature-data-logger-based-on-ESP/)

Power on the USB cable.

Execute:

./esptool.py -p /dev/ttyUSB0 write_flash 0x000000 v0.9.5.2\ AT\ Firmware.bin

Don’t forget to change ttyUSB0 for what ever your port is.
Power down everything and disconnect GPIO0

Power on again and check:

AI-TAT+RST

OK

ets Jan 8 2013,rst cause:4, boot mode:(3,2)
wdt reset
load 0x40100000, len 816, room 16
tail 0
chksum 0x8d
load 0x3ffe8000, len 788, room 8
tail 12
chksum 0xcf
ho 0 tail 12 room 4
load 0x3ffe8314, len 288, room 12
tail 4
chksum 0xcf
csum 0xcf
2nd boot version : 1.2
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size : 4Mbit
jump to run user1
r$\0x8eC\0xff
Ai-Thinker Technology Co. Ltd.
ready

Install Xively on Ubuntu — Python

//Install git to clone Xively Python repository
sudo apt-get install git
mkdir xively
cd xively
git clone git://github.com/xively/xively-python.git

To test xively tutorial we need to install some dependencies:

sudo apt-get install python-setuptools
// if you have a version error, try:
sudo apt-get install python-pip
sudo pip install setuptools --no-use-wheel --upgrade ...
// if you have a version error, download latest setuptools:
wget https://bitbucket.org/pypa/setuptools/get/default.tar.gz#egg=setuptools-dev
tar -xvf default.tar.gz
cd pypa-setuptools-6ed8f0298e64/
sudo python setup.py install
sudo pip install requests

Than test the xively tutorial with the python example:
https://xively.com/dev/tutorials/pi/#code

//Dont forget to put the script inside the xively folder