These are chat archives for esp8266/Arduino

20th
Jun 2015
chad cormier roussel
@chadouming
Jun 20 2015 01:02
hmm, just compiled a sketch and got undefined reference for "__ieee754_sqrt"
also, this line popped : d:\ivan\projects\arduinoesp\toolchain\dl\esp-newlib\build\xtensa-lx106-elf\newlib\libm\math/../../../../../newlib/libm/math/w_sqrt.c:63
@igrr
Ivan Grokhotkov
@igrr
Jun 20 2015 04:08
@chadouming you're on Windows? perhaps Windows newlib was not built with math enabled. works fine on a Mac here
chad cormier roussel
@chadouming
Jun 20 2015 04:09
yeah, i'm on windows
Markus
@Links2004
Jun 20 2015 13:10

have currently a strange problem. i have setuped a new ESP12 module and when i flash a software to it i only get:

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)                                   

load 0x4010f000, len 1464, room 16                                              
tail 8                                                                          
chksum 0x7a                                                                     
csum 0x7a                                                                       
¢üÚ™"`œ!•`±h                                                                   
SDK ver: 1.1.2 compiled @ Jun 15 2015 11:18:43                                  
phy ver: 356, ppþ

if i flash the same hex to a other ESP12 its work normally. even the "blink" example has this problem.

Markus
@Links2004
Jun 20 2015 13:25
ok... for this project i used Serial not Serial1 (where the debug output is) ........
Me No Dev
@me-no-dev
Jun 20 2015 13:46
did it fix the problem?
i mean switching the serial?
Markus
@Links2004
Jun 20 2015 13:46
yes I simply look at the wrong pin for data.
Me No Dev
@me-no-dev
Jun 20 2015 13:47
oh ok
chad cormier roussel
@chadouming
Jun 20 2015 14:52
any idea how to fix math function on windows ?
Markus
@Links2004
Jun 20 2015 14:53
for testing: copy the libm from mac
the build process for windows has a problem/other config
Me No Dev
@me-no-dev
Jun 20 2015 14:54
chad cormier roussel
@chadouming
Jun 20 2015 15:03
libm you gave me worked flawless, however, it's 50% smaller. is it normal ?
Me No Dev
@me-no-dev
Jun 20 2015 15:03
could not tell you :)
but since it's working, i imagine it's ok
chad cormier roussel
@chadouming
Jun 20 2015 17:23
with the gyroscope and @Links2004 websocket, i imagine it would be kinda easy to develop and virtual reality headset with almost not footprint and wireless :D
Michael Miller
@Makuna
Jun 20 2015 17:30
@chadouming they build up error, so without periodic reset to absolute directions, they don't work well. The first Oculus Rift used that, they switched to an external camera tracking of IR leds on the headset to get more accurate tracking.
chad cormier roussel
@chadouming
Jun 20 2015 17:31
seemed too easy xD
chad cormier roussel
@chadouming
Jun 20 2015 18:00
another new thing in arduino 1.6.6, the serial window doesnt close when you upload
chad cormier roussel
@chadouming
Jun 20 2015 18:05
also, that stack dumping thing is awesome

rlG X: 539 Y: 1012 Z: -218 A: -32760 -32760 32760 M: 292 -618 -3059 T: 52341536 H: 96754758

ctx: cont
sp: 3ffe9d50 end: 3ffe9f60 offset: 01b0

stack>>>
3ffe9f00: 3ffe8d58 3ffe9f8c 40201d22 3ffe8f40
3ffe9f10: 40201512 000003e8 3ffe9fb8 3ffe9f8c
3ffe9f20: 3fffdc20 3ffe8dfc 3ffe9f84 4020226f
3ffe9f30: 40201d41 fffffd96 fffff40d 40202226
3ffe9f40: 3fffdc20 00000000 3ffe9f84 40201d9a
3ffe9f50: 00000000 00000000 3ffe8f40 40100450
<<<stack<<<

what happen when i try to read temp and humidity from sht15 that is on the same wire than compass, gyro and magneto
chad cormier roussel
@chadouming
Jun 20 2015 18:21
made progress, now it just spit non-sense instead of crashing :D
Me No Dev
@me-no-dev
Jun 20 2015 18:42
hahahahahaha
@chadouming you can look at the code of the major RC stabilization firmwares
they are pretty good at calculating the attitude of the craft for prolonged period
so should help you with your project
chad cormier roussel
@chadouming
Jun 20 2015 18:56
i'll do when i'll finally have my first motor
so far I was able to control a servo with microseconds instead of just giving it the angle, so i'll have fun to learn how to control esc
still have to make my AtTiny board tho
will also use mpu6050 for arm stabilization
Me No Dev
@me-no-dev
Jun 20 2015 18:58
it's quite simple :) 1500 us is always the servo center
same goes for ESCs
chad cormier roussel
@chadouming
Jun 20 2015 18:58
so each atTiny will listen to a % communicated over serial, read mpu then decide at which speed the esc should go :D
Me No Dev
@me-no-dev
Jun 20 2015 18:59
each tiny?
what is the purpose of that?
chad cormier roussel
@chadouming
Jun 20 2015 18:59
having fun
redundance
stability
Markus
@Links2004
Jun 20 2015 18:59
there is an DOF10 board with mpu6050, is working nice on i2c
Me No Dev
@me-no-dev
Jun 20 2015 18:59
you will get bitten by time :)
@Links2004 I'm using such board to fly the ESP
@chadouming atTiny does not have hardware serial
chad cormier roussel
@chadouming
Jun 20 2015 19:01
i know, working fine with software onw<
one*
Me No Dev
@me-no-dev
Jun 20 2015 19:01
atTiny X5 that is
chad cormier roussel
@chadouming
Jun 20 2015 19:01
yeah, i'm using 85
Me No Dev
@me-no-dev
Jun 20 2015 19:01
i thought so :)
chad cormier roussel
@chadouming
Jun 20 2015 19:02
getting decent performance over software serial
Markus
@Links2004
Jun 20 2015 19:02
i also plane to use it some ports are missing atm, workin at the remote control right now :)
my copter will have 2 ESP + on RF24 to have an backup for signal lost
Me No Dev
@me-no-dev
Jun 20 2015 19:02
watch out for those two together
both run on 2.4GHz
Markus
@Links2004
Jun 20 2015 19:03
yes, but the nrf24 goes up to ~600-900m so wifi will drop before for sure
Me No Dev
@me-no-dev
Jun 20 2015 19:03
i did the TX module and will go with larger antenna instead or use 433MHz as backup
I saw some amazing results with ESPs and real antennas attached
600m+
Markus
@Links2004
Jun 20 2015 19:04
nice
Me No Dev
@me-no-dev
Jun 20 2015 19:04
as a matter of fact, my RC gear outputs 20db at 2.4GHz
and goes over 1.5km
so I see no reason why 20db ESP would not go as much
given there is little radio noise
Markus
@Links2004
Jun 20 2015 19:05
the RC has lower data rate
so more distance
Me No Dev
@me-no-dev
Jun 20 2015 19:05
true
they use cc2500 mostly
Markus
@Links2004
Jun 20 2015 19:06
for this i add a nrf24 + PA as backup low data rate but high range confirmed. good and cheap backup channel.
Me No Dev
@me-no-dev
Jun 20 2015 19:07
but requires SPI+1INT
Markus
@Links2004
Jun 20 2015 19:07
dont want to crash my quad because wifi drop ;)
Me No Dev
@me-no-dev
Jun 20 2015 19:07
will you have enough pins?
Markus
@Links2004
Jun 20 2015 19:07
yes but no problem will add 2 ESP :)
Me No Dev
@me-no-dev
Jun 20 2015 19:08
hahahahaha
Markus
@Links2004
Jun 20 2015 19:08
one for control the ESP and sensors and one for Wifi + RF24
Me No Dev
@me-no-dev
Jun 20 2015 19:08
PPM?
Markus
@Links2004
Jun 20 2015 19:09
no serial MultiWii Protocol
Me No Dev
@me-no-dev
Jun 20 2015 19:09
oh... :D
Markus
@Links2004
Jun 20 2015 19:09
is already implemented :) controlling an CC3D for testing.
Me No Dev
@me-no-dev
Jun 20 2015 19:11
i guess I look at the ESP more as a toy copter quality MCU
so would not put it on nothing big
1 ESP on each side and good antennas and I'll see how far it will go
Markus
@Links2004
Jun 20 2015 19:12
if all parts are there i place it on a 250 frame for playing :) if not working good i add the CC3D with 10 DFO sensor update.
Me No Dev
@me-no-dev
Jun 20 2015 19:12
thinking of using UDP for the telemetry as well
had only issues with TCP
Markus
@Links2004
Jun 20 2015 19:13
hehe,
yes MultiWii over UDP is what i implement atm
Me No Dev
@me-no-dev
Jun 20 2015 19:13
control is UDP, but I implemented the telemetry over TCP
and is mostly working... but mostly
and control is working like crazy well
would love to see if you get the stabilization working
i can not get horizon and angle to work properly
acro is working verry well
Michael Miller
@Makuna
Jun 20 2015 19:15
If you loose a heartbeat (UDP) then just have it go into a hover mode, if a 30 seconds pass while still no heartbeat, just have it go into a slow land mode.
Me No Dev
@me-no-dev
Jun 20 2015 19:15
yeah... failsafe
Markus
@Links2004
Jun 20 2015 19:16
yes really needed for this experiments
Michael Miller
@Makuna
Jun 20 2015 19:17
(it also helps to have a beeper on it, so if it happens to get away) ;-)
Me No Dev
@me-no-dev
Jun 20 2015 19:17
i have a beeper on the TX module
but have all pins mapped to ottors and serial on the module
so nothing is really free for beeper there
Markus
@Links2004
Jun 20 2015 19:18
may i2c port replicator
This message was deleted
[img]
Me No Dev
@me-no-dev
Jun 20 2015 19:20
what about it?
Markus
@Links2004
Jun 20 2015 19:20
you can add it to get more pins at he ESP
only needs I2C
Me No Dev
@me-no-dev
Jun 20 2015 19:21
this is an LCD module
Markus
@Links2004
Jun 20 2015 19:21
yes but its an simple IO extender chip on it
Me No Dev
@me-no-dev
Jun 20 2015 19:21
for 1602 screens and the like
point is to be minimal :)
like my baseflight mini controller
Markus
@Links2004
Jun 20 2015 19:22
^^ yes wight is the problem
Me No Dev
@me-no-dev
Jun 20 2015 19:22
the header for the pins weights more than the board itself