Comments (9)
That's an interesting use case! :) But definitely doable - the min/max are set as constants presently, but they could be loaded from EEPROM. Button pushes could be used to set these values, 20x for lower limit, 22x for upper.
(I do look back and wish I'd limited the memory to maybe 8 positions so these other functions would be less annoying to access, but with many units out there in the wild I would rather be consistent)
from megadesk.
I am very inexperienced with AVR programming, thats why I bought it assembled some time ago on tindie, but I'd like to put some time into adding this feature. I read in other issues you are recommending some hardware #20 (comment)
Could you provide a "development quickstart" in your Readme, something like:
- Supported way is using this USB-Dongle.
- Add those headers to your unit.
- connect pins like this (Everytime I switch TX and RX around in my serial interface history ;))
- Compile with
make all
. - Program the unit with
avrdude -c ...
.
Of course only in the supported environment you are working in. Only basic stuff, not too beginner friendly. Only to know what works for others.
from megadesk.
Sure, I will put some basic links together - there's a lot out there so I'll try to find some good information.
from megadesk.
25a2157 adds some documentation on programming at the bottom of the readme now visible at the front page. I'm going to hide these comments - if you have further questions on programming, happy to help, just open a new issue so we keep this one dedicated to max/min values as I like the idea!
from megadesk.
Hi gcormier,
I got my controller today.
Thank you very much for the fast delivery.
And it's really a great part.
Could you still put in the limit for up and down?
I have a small cabinet under my desk.
Without limit it would be broken :-)
Thanks a lot
from megadesk.
Hello! It is not yet implemented. Firmware values could be changed if you are able to re-flash the controller.
from megadesk.
I have this Converter https://www.amazon.de/gp/product/B01CYBHM26/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1
Can i use this to flash the Firmware?
And what value must be changed for the min value?
THX
from megadesk.
No, that is merely a serial converter, which will not work for AVR programming. You can find more info at https://github.com/gcormier/megadesk#programming
from megadesk.
This is now also in the newly created dev branch.
I made a small change though - when we do an init, we will want the default min/max to be the biggest range possible.
void initAndReadEEPROM(bool force)
{
int a = EEPROM.read(0);
int b = EEPROM.read(1);
if ((a != 18 && b != 13) || force)
{
for (unsigned int index = 0; index < EEPROM.length(); index++)
EEPROM.write(index, 0);
// Store unique values
EEPROM.write(0, 18);
EEPROM.write(1, 13);
#ifdef MINMAX
// reset max/min height
EEPROM.put(40, DANGER_MIN_HEIGHT);
EEPROM.put(44, DANGER_MAX_HEIGHT);
#endif
}
#ifdef MINMAX
EEPROM.get(40, minHeight);
EEPROM.get(44, maxHeight);
#endif
}
from megadesk.
Related Issues (20)
- Question: Serial enabled?
- Problems connecting esphome
- Use ESP32 to support Smarthome with Matter
- Create yaml/header files
- Feature request "Silent mode" HOT 4
- Megadesk recalibration throws error HOT 29
- Cable Support needed - Colors HOT 1
- Lock butons HOT 1
- Control legs separately HOT 1
- Unable to compile
- megadesk-companion.yaml trying to add buttons to trigger right memory slots
- Unable to save new minimum height HOT 4
- ERROR Running command failed: Could not open /dev/ttyACM0, the port doesn't exist HOT 2
- Doc Enhancement: Explain how to use HTTP requests to control the desk via the companion HOT 2
- Homeassistant integration stopped working
- Doesn't stop beeping during and after moving to preset location HOT 2
- ECS+ Support Workaround HOT 6
- brand new megadeek keeps beeping HOT 1
- Slow response time when releasing button while moving HOT 4
- Megadesk & Companion not working. Error: "Reading from UART timed out at byte 0!" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from megadesk.