-
@Gordon
So ... is it possible to add your "saveToSD()" and "loadFromSD()" functions to the next firmware release version of Espruino?
Without these "internal" functions this project is DOA. -
@user7114 it depends how you did it... The simplest way would be to
write all your code in one big function. You get multi-line editing
then, and it can easily be converted to a string to save with
.toString().A much easier way is to include, in Espruino built-in functions, your two code snippets that you wrote in this topic ...
http://forum.espruino.com/conversations/253795/#comment11812662Note: Other (non terminal users) will find these two functions very handy in saving and restoring their user code to the SD drive for backup or SD booting.
-
-
Espruino Terminal Project
Purpose: Create Espruino projects offline from the Internet.There is a new Indiegogo project called PI-Top. Its really a PI SBC with a LCD, keyboard with enclosure and a prototype area.
https://www.indiegogo.com/projects/pi-top-a-raspberry-pi-laptop-you-build-yourselfI was thinking ... why not create a completely standalone terminal using the Espruino ver. 1.3 with no PC or internet? The library module(s) storage would reside on Espruino SD card.
The parts (below) would be the ASCII terminal attached to the Espruino.
Are there any obvious hardware/software design flaws in making this Espruino terminal? Any forum user comments is appreciated.
Parts:
#1. 7" TFT LCD Color monitor (backup cam monitor) - PAL/NTSC (Amazon $35)
http://www.amazon.com/RearView-Headrest-Monitor-Support-Rotating/dp/B007SLDF7O/ref=sr_1_2?ie=UTF8&qid=1416962445&sr=8-2&keywords=backup#2. Miniature keyboard- Microcontroller friendly PS/2 (Adafruit $30)
http://www.adafruit.com/products/857?gclid=CLDS342Hl8ICFY4AaQodD6YA4Q#3. ASCII VT100 compatible video terminal board (VGA/NTSC/PAL/PS2) (Geoff's Projects)
http://www.geoffg.net/terminal.html#4. Espruino ver. 1.3 with transflash/SD. Serial TTL (no level conversion needed) (Espruino USART1 attached to ASCII video terminal serial port @ 9600 baud)
Addition ... 27/11/14
Espruino Terminal Project pitfalls/workarounds/enhancements:
#1. Espruino "online" minification will be missing for all library modules
or user source code. Just use the Espruino Pico for more JSVARS and add
a SD card breakout board.#2. No Espruino firmware updating.
Just attach the Espruino via USB to a computer which has the WEB IDE
installed and update the firmware. Make sure all the library modules are
"up to date" by viewing the release dates and updating the Espruino SD
card modules manually.#3. By removing the "on-line" internet library modules "should" increase the
Espruino communication responses/feedback.#4. The ASCII VT100 terminal board video output is not restricted to NTSC/PAL but
also has the capability to output to any VGA monitor (CRT or LCD). This
means, you could buy any surplus or junk VGA monitor and keyboard at an extremely low price. Note: There are low cost adapters that convert a USB keyboard to PS2. -
-
-
I have many connected USB devices on my computer. Last night, I went to set the RTC "DS1307" on my Arduino "Teensy 2" and used the wrong comport. The Arduino driver directed the upload to my Espruino RTC instead. In doing so, it set the external I2C RTC "DS3231" to the wrong time!
How can my comport mis-direction make it so the Arduino IDE uploaded into the Espruino?
Next time, I will remove all devices which I am not uploading to.
-
There is a better, smaller, gesture sensor that also reads RGB (color detection) at $15 USD vs $40 USD for the larger Hoover PCB.
https://www.sparkfun.com/products/12787 -
The Espruino Pico is a battery miser.
You could purchase one, off the shelf, AA Duracell Quantum (primary cell, Alkaline) 1.5 VDC @ 3900 mAh and ten year shelf life.
Then use the Tindie step-up booster converter which idles at 55uA and use the Espruino Pico @ 10-12 uA at idle / sleep.
Just at idle, you have over 6 years before the battery capacity is drained. Best of all, there is a power check, on the side of this battery to indicate battery capacity.
Note: The TPS61200 booster step-up DC to DC converter makes sure every joule of usable battery energy is used before shutting down.
https://www.tindie.com/products/BBTech/tps61200-power-step-up-converter-booster-v1/
-
-
The bit about the 10 year runtime on an AA-sized lithium - might want
to clarify that. Most people will assume that means " Lithium", the
1.5v alkaline replacements, not the 3.6v lithium thionyl chloride cells that I assume you had in mind.Current draw in sleep: <0.1mA - over 2.5 years on a 2500mAh battery.
Whoa ...The minimum "Pico" input is 3.5-20 vdc.
Are we talking 1 or multiple batteries?
Are you using a booster on the battery(s)?
What type of battery are you using?
Are we reducing the capacity 8% per month for self discharge? (for lipos) Varies between other battery chemistry. -
-
-
-
The Espruino ,which has thoroughly tested modules by GW, can be used as the intelligent "front end" to this development widget. It seem the Kinoma Create has no modules made yet and does not support SPI.
https://www.sparkfun.com/products/13182
https://www.indiegogo.com/projects/kinoma-create -
There was actually another thread on this - the easiest way around it
is simply to set 'Module Minification' in settings to 'No
Minification', and your problems will almost certainly be solved.Yep, it solves the problem BUT added 800 JSVARS to the program size. (In my application code) By doing so, you just "shot yourself in the foot" by not having minification!
-
Does it always just display the blinking light code in that case?
No, it always brings up an old test file used in early development.
Like DrAzzy said "I'm sure it'll make perfect sense when Gordon or someone who knows tells us - but it's certainly not intuitive, and it never seems to remember anything useful."
-
Do you notice any drift between the two RTC modules?
Hardly none due to the "daily" GPS updates of both real time clocks.
The DS3232 is a +- 2 PPM device which drifts ~ 0.17 seconds per day and since
this is less than a second per day there is no way to measure it before the next sync update.
(It has to be greater than 1 second to measure the drift or inaccuracy) -
-
The Forever Clock under side pic details ...
Right side: main RTC w battery (DS3232)
Top right: connected to the bottom of enclosure is
the accelerometer. (ADXL335) 1 axis used.
Top center is secondary RTC w battery (DS3231)
Top left: NeoPixel power supply and power input from wall-wart.
Left side: GPS (uBlox) / w antenna
Bottom: 4x20 I2C LCD
Center: Espruino in E Block 3D enclosure. -
Main Features - powered by the Espruino ...
Special design 3D color/coloured ABS printed enclosure for clock electronics. Also, has custom made acrylic dome for NeoPixel clock face.
No push buttons or switches needed - there is nothing to set!
Two precision, battery backed, real time clocks and one GPS module provides accurate time within +- 1 second of GMT/UTC.
Computer generated NeoPixel "analog" clock hands. Green "small hour hand" and red "large minutes hand". Displays time in 5 minute increments.
Time is always rounded up to the next five minute interval.Automatic daylight savings time adjustment (DST) for hands free operation.
Two time displays - One NeoPixel "analog" clock ring for room display and one backlit 4x20 LCD for local desktop precision display.
The backlit 4x20 LCD displays the following:
Local time/date.
GPS UTC/GMT.
Local time zone.
DST summer/winter mode.
Month abbreviation.
Day abbreviation.
GPS latitude.
GPS longitude.
GPS altitude.
GPS number of satellites.
GPS fix statistics.
Ambient temperature (F.)
Ambient relative humidity (RH%)Accelerometer measures tilt/angle for LCD display data switching.
The front of the NeoPixel clock is mostly symbolic due to the design input of a small FEMALE. The yellow stars represent the US Military GPS satellite system "in the stars". The blue globes represents planet earth. The diamonds represent "forever" ("Diamonds are forever" [fake acrylic rhinestones]). Hence, The Forever Clock. This forever clock will only fail to keep precision time only when the US Military GPS satellite system cease to exist and the probability of this happening is near zero.
Below is a picture of The Forever Clock without the front bezel and acrylic NeoPixel clock
dome. -
-
-
this project is DOA. (Dead on arrival)
This project "could have" made it possible for underprivileged students to educate themselves about the Javascript programming language without the need to have an Internet connection or PC.