Coder Social home page Coder Social logo

esplocalizer's Introduction

esplocalizer

##ESP Localizer Board The esplocalizer-tight design is open source and leverages the versatility of the ESP8266 microprocessor and WiFi along with the 10 degrees of freedom sensors and integrated battery controller. The unit comes with basic sensor code loaded and tested on the board.

Physical ESPLocalizer

Ebay link: http://www.ebay.com/itm/112253286481

##ESP-12-F: ESP-12F WiFi module is developed by Ai-thinker Team. core processor ESP8266 in smaller sizes of the module encapsulates Tensilica L106 integrates industry-leading ultra low power 32-bit MCU micro, with the 16-bit short mode, Clock speed support 80 MHz, 160 MHz, supports the RTOS, integrated Wi-Fi MAC/BB/RF/PA/LNA, on-board antenna. The module supports standard IEEE802.11 b/g/n agreement, complete TCP/IP protocol stack. Users can use the add modules to an existing device networking, or building a separate network controller. ESP8266 is high integration wireless SOCs, designed for space and power constrained mobile platform designers. It provides unsurpassed ability to embed Wi-Fi capabilities within other systems, or to function as a standalone application, with the lowest cost, and minimal space requirement.

##BMP280: BMP280 is an absolute barometric pressure sensor especially designed for mobile applications. The sensor module is housed in an extremely compact package. Its small dimensions and its low power consumption allow for the implementation in battery driven devices such as mobile phones, GPS modules or watches

##LSM9DS1: The LSM9DS1 is a versatile, motion-sensing system-in-a-chip. It houses a 3-axis accelerometer, 3-axis gyroscope, and 3-axis magnetometer โ€“ nine degrees of freedom (9DOF) in a single IC.

##STBC08: The STBC08 is a constant current/constant voltage charger for single-cell Li-Ion batteries. The ESPLocalizer comes with a connector for hubsan-type lithium ion batteries.

Resources

ESP8266.com forums: http://www.esp8266.com/viewforum.php?f=161

Pinout: ESPLocalizer pinout

esplocalizer's People

Contributors

cnlohr avatar con-f-use avatar per1234 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esplocalizer's Issues

Missing PCB file in hardware

I would like recreate this device but the hardware section is missing the pcb file. Could it be included in the repository?

Fast Acc CSV Stream is empty file

I'm having trouble reading the accel and gyro data from a websocket. The default /firmware-c web interface gives a link to the CSV file, but I'm getting 0 bytes or "unable to connect" errors at /d/fastacc.csv

I'm able to create websockets to these endpoints I found in the source:
/d/ws/echo
/d/ws/evaltest
/d/ws/issue

My hunch is I'd have to create a new endpoint: /d/ws/fastacc which the ESP sends websocket packets to connected devices through.

The web interface and fastacc() in /firmware-c/user/user_main.c looks like the device should already be sending this data, I'm not sure the endpoint to connect to or if this is a problem with my setup.

When I click on the Fast Acc CSV link in web interface, this function should write to socket. 'Save link as' doesn't make a difference:

static ICACHE_FLASH_ATTR void fastacc()
{
	//char mydat[128];
	//int len = URLDecode( mydat, 128, curhttp->pathbuffer+8 );

	char buf[1024];
	int times = 20;
	int len = 0;
	int16_t data[10];

	if( first_acc == 1 )
	{
		first_acc = 0;
		len += ets_sprintf( buf+len, "gx, gy, gz, ax, ay, az\r\n" );
	}

	for( ; times > 0 && lsmhead != lsmtail; times -- )
	{
		int16_t * data = &lsmdata[6*lsmtail];
		lsmtail = (lsmtail+1)%LSMBUFFERSIZE;
		
		len += ets_sprintf( buf+len, "%d, %d, %d, %d, %d, %d\r\n", data[0], data[1], data[2], data[3], data[4], data[5] );
	}

	if( len )
	{
		START_PACK;
		PushBlob( buf, len );
		END_TCP_WRITE( curhttp->socket );
	}

	if( i2cmode == 0 )
	{
		curhttp->state = HTTP_WAIT_CLOSE;
	}

}

esplocalizer firmware-c example missing files

Cloned esp82XX-basic example compiled and flashed to esp without issue. Everything works great.

Unable to do make all in /esplocalizer/firmware-c, compiler missing 'lib' files. What does libmain.a do and where can I get it :) ?

xtensa-lx106-elf-gcc: error: /Volumes/case-sensitive/esp-open-sdk/lib/libmain.a: No such file or directory
xtensa-lx106-elf-gcc: error: /Volumes/case-sensitive/esp-open-sdk/lib/liblwip.a: No such file or directory
xtensa-lx106-elf-gcc: error: /Volumes/case-sensitive/esp-open-sdk/lib/libssl.a: No such file or directory
xtensa-lx106-elf-gcc: error: /Volumes/case-sensitive/esp-open-sdk/lib/libupgrade.a: No such file or directory
xtensa-lx106-elf-gcc: error: /Volumes/case-sensitive/esp-open-sdk/lib/libnet80211.a: No such file or directory
xtensa-lx106-elf-gcc: error: /Volumes/case-sensitive/esp-open-sdk/lib/libwpa.a: No such file or directory
xtensa-lx106-elf-gcc: error: /Volumes/case-sensitive/esp-open-sdk/lib/libphy.a: No such file or directory
xtensa-lx106-elf-gcc: error: /Volumes/case-sensitive/esp-open-sdk/lib/liblwip.a: No such file or directory
xtensa-lx106-elf-gcc: error: /Volumes/case-sensitive/esp-open-sdk/lib/libcrypto.a: No such file or directory
xtensa-lx106-elf-gcc: error: /Volumes/case-sensitive/esp-open-sdk/lib/libpp.a: No such file or directory

Which LDO did you use?

Can you please expose more information on the parts you used? Especially the LDO you used.

Arduino build error

When I build esp_10dof.ino using Arduini 1.8.5 I get the error:
/var/folders/53/6tzgtd453hzgcg2hsv9j353w0000gn/T/arduino_build_876699/sketch/esp_10dof.ino.cpp.o:(.text._Z12sensor_setupv+0x10): undefined reference to `LSM9DS1::begin()' /var/folders/53/6tzgtd453hzgcg2hsv9j353w0000gn/T/arduino_build_876699/sketch/esp_10dof.ino.cpp.o: In function `sensor_setup()': /Users/Kostia/drive/Dropbox/ec2/gled/esplocalizer/firmware-arduino/esp_10dof/esp_10dof.ino:106: undefined reference to `LSM9DS1::begin()' /var/folders/53/6tzgtd453hzgcg2hsv9j353w0000gn/T/arduino_build_876699/sketch/esp_10dof.ino.cpp.o: In function `printData()': /Users/Kostia/drive/Dropbox/ec2/gled/esplocalizer/firmware-arduino/esp_10dof/esp_10dof.ino:165: undefined reference to `getAccel(bool)' /Users/Kostia/drive/Dropbox/ec2/gled/esplocalizer/firmware-arduino/esp_10dof/esp_10dof.ino:165: undefined reference to `getGyro(bool)' /Users/Kostia/drive/Dropbox/ec2/gled/esplocalizer/firmware-arduino/esp_10dof/esp_10dof.ino:166: undefined reference to `getMag(bool)' /Users/Kostia/drive/Dropbox/ec2/gled/esplocalizer/firmware-arduino/esp_10dof/esp_10dof.ino:167: undefined reference to `getAccel(bool)' /Users/Kostia/drive/Dropbox/ec2/gled/esplocalizer/firmware-arduino/esp_10dof/esp_10dof.ino:168: undefined reference to `getGyro(bool)' /var/folders/53/6tzgtd453hzgcg2hsv9j353w0000gn/T/arduino_build_876699/sketch/esp_10dof.ino.cpp.o: In function `loop': /Users/Kostia/drive/Dropbox/ec2/gled/esplocalizer/firmware-arduino/esp_10dof/esp_10dof.ino:168: undefined reference to `getMag(bool)' /Users/Kostia/drive/Dropbox/ec2/gled/esplocalizer/firmware-arduino/esp_10dof/esp_10dof.ino:171: undefined reference to `LSM9DS1::LSM9DS1()' /Users/Kostia/drive/Dropbox/ec2/gled/esplocalizer/firmware-arduino/esp_10dof/esp_10dof.ino:174: undefined reference to `LSM9DS1::LSM9DS1()' collect2: error: ld returned 1 exit status

How to fix it?

Fails to start wifi

New install following instructions, cloned esp82XX-basic example, successfully flash firmware with "make burn" and "make burnweb" (no errors), but doesn't start a wifi hotspot. Serial output on reset shows:

esp82XX Web-GUI
Version: v0.1-7-g06742-dev - Build Thu Jan 19 20:05:33 PST 2017 with -DICACHE_FLASH -DWEB_PORT=80 -DCOM_PORT=7777 -DBACKEND_PORT=7878  -DSLOWTICK_MS=5Loading Settings: af / 0 / 69 / 69
Settings Loaded: ESP_930A72 / Default
Opmode: 0
Boot Ok.

I'm not sure how to debug why the Opmode would be 0 (wifi off) for this example project. Any pointers would be really helpful, thank you!

On MacOS 10.12

Autoimporting KiCad pretty footprints from hardware/*.sch

Hello @cnlohr,

Thanks much for publishing your projects as open hardware as well as the firmware, always inspiring stuff to learn from you.

I have been trying to reuse your .sch since I have a couple of modifications in mind to your design.

Sorry if this sounds obvious (I'm a relatively new KiCad user), but how can I auto-import the footprints for pcbnew without manually importing each .pretty library/module? as the KiCad docs state, i.e:

https://github.com/jdunmire/kicad-ESP8266

I thought about giving this giant meta-pretty-repo a shot, but the ESP footprint doesn't seem to be there:

https://github.com/monostable/kicad_footprints

I understand you might be using your existing installation/footprints from past projects, but what would be your advice to semi-automate this process of importing footprints?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.