![]() |
Forum Index : Microcontroller and PC projects : Renewable Energy Manager with MMBASIC
Page 1 of 3 ![]() ![]() |
|||||
Author | Message | ||||
swissembedded Newbie ![]() Joined: 22/11/2015 Location: SwitzerlandPosts: 24 |
Dear all we are operating a PV plant here in Switzerland. In order to use most of our own energy, we developped an energy manager to control loads and make best out of the energy. Thanks to Geoff, the device now runs MMBASIC, which opens the door to many interesting applications, such as solar monitor, smart home connection, load control, battery storage solutions (on and off grid)... We just started it on Kickstarter. Maybe somebody is interested. EMDO can do your Energy Manager for Renewable Energy There are also some interesting technical features. The device has a build in http server which enables writing basic programs in webbrowser editor and a integrated tcp/ip stack. It runs MQTT, maybe some is interested in IoT. Source code is available at github. Best regards Dani |
||||
isochronic Guru ![]() Joined: 21/01/2012 Location: AustraliaPosts: 689 |
Wow..what chips is it using ? How does the MMbasic interact with RTOS and Ethernet, etc ? |
||||
kiiid Guru ![]() Joined: 11/05/2013 Location: United KingdomPosts: 671 |
This is huge! I hope you succeed guys ![]() http://rittle.org -------------- |
||||
swissembedded Newbie ![]() Joined: 22/11/2015 Location: SwitzerlandPosts: 24 |
It is a PIC32, we have the microchip stack working on it with freertos. Freertos just released a stack, but there is no support for the PHY yet. We don't need any graphical memory, thus we can dedicate some memory for the stack. Currently we have 64k out of 128k left for mmbasic. Pls have a look at github for the source code. Most programs have been tested, but it takes some iterations to get everything perfect. github Look at philips_hue, that is an example of switching the color of a LED lamp depending on the energy production of the house. It shows how a tcp/ip is handled. For mqtt pls have a look at the mqtt folder. The client can publish data but also can subscribe to receive data updates. display_modbus is an example to communicate with a slave display sunspec is an example to communicate with an inverter, abbcdd is an example to use xml parsing from a power one / abb inverter. These have a build in HTTP/XML interface. JSON is possible too. It is possible to allow access to basic variables from external, thus showing some values in the webbrowser is just polling json commands on the emdo. I'll write a manual for all the special commands. But first we want to finish the hardware. It has been a long time that I did not use BASIC anymore. If some experts have advice to change the instructions, I'm open to it. |
||||
swissembedded Newbie ![]() Joined: 22/11/2015 Location: SwitzerlandPosts: 24 |
Thank you kiiid, MMBasic is just huge, thank you Geoff for writing it. We are just adding things to it ;-) |
||||
viscomjim Guru ![]() Joined: 08/01/2014 Location: United StatesPosts: 925 |
HOLY COW! This is awesome. Took a look at the Github code. This is going to be a game changer for sure. Can't wait to see how this pans out. swissembedded, I hope you do well on your kickstarter. This is really a great effort on your and Geoffs part. GREAT (and exciting) WORK!!! EDIT... The more I look at the github code, the more my mouth is watering. Is this "version" of basic going to be available to others or is it dedicated to your hardware. I can see several commands that take MMbasic to the "next level" being able to do more IOT type things. Also, which pic32 chip are you using? 170 or other? Thanks again, this is awesome! |
||||
swissembedded Newbie ![]() Joined: 22/11/2015 Location: SwitzerlandPosts: 24 |
Thank you, yes we have to get into quantities, that is the main problem... I personally like the feature for manipulating basic variables over json commands the most. That makes interoperability very easy. Just be patient and look the full movie. Look what is written in the browser... Switching loads |
||||
bigfix Senior Member ![]() Joined: 20/02/2014 Location: AustriaPosts: 129 |
Looks to good to pass... I just pledged 325 SFR at Kickstarter for the April Version ! I have 2x SMA 5000 Tripower Inverters with 13kwp Panels in Austria There is already a swiss made web enabled powermeter "EMU Professional" (giving all kinds of information about power flows) Groundwater based heatpump for heating and cooling the floors Air based heatpump for hot water Pool with solar heating So lots of things to monitor and steer ! hope this kickstarter works out I also hope we finally get real Ethernet/WEB support for the UMites... |
||||
kiiid Guru ![]() Joined: 11/05/2013 Location: United KingdomPosts: 671 |
Are you going to make these additions public? I see some reeeealy good interesting ones. I suggest talk to Geoff directly so he can include them into the main project. Hopefully that can happen soon because my hands are getting itchy :) http://rittle.org -------------- |
||||
swissembedded Newbie ![]() Joined: 22/11/2015 Location: SwitzerlandPosts: 24 |
@Bigfix: excellent, thank you very much. You could ask your heat pump manufacturer about regulating the heat pump. Some can only be switched on / off, others might be controlled over modbus. In any case make sure that there is no wearout of the pump, - there are some minimal on/off times that must be followed. Which EMU device do you have? @kiiid: I'm also curious about the progress he made on the larger PIC processors. I had quite some struggle with memory resources, as I'm using an RTOS (guess that is a must, and forces some changes on mmbasic). As we don't need memory for video, we are just fine, but with video it would have been very difficult with 128k. |
||||
viscomjim Guru ![]() Joined: 08/01/2014 Location: United StatesPosts: 925 |
Can we assume you are using a 170? |
||||
swissembedded Newbie ![]() Joined: 22/11/2015 Location: SwitzerlandPosts: 24 |
PIC32MX795 |
||||
viscomjim Guru ![]() Joined: 08/01/2014 Location: United StatesPosts: 925 |
AHHH! Very cool!!!! |
||||
kiiid Guru ![]() Joined: 11/05/2013 Location: United KingdomPosts: 671 |
It would be much more efficient and attractive to port it to MX470 for MM+. It is a much better chip than MX795. http://rittle.org -------------- |
||||
twofingers![]() Guru ![]() Joined: 02/06/2014 Location: GermanyPosts: 1593 |
Can you explain that, please? MX795 MX470 causality ≠ correlation ≠ coincidence |
||||
swissembedded Newbie ![]() Joined: 22/11/2015 Location: SwitzerlandPosts: 24 |
I would rather go to a MZ, but there is a long list of silicon erratas that must be checked first. That is why I prefered a MX first. CPU speed is not an concern. |
||||
viscomjim Guru ![]() Joined: 08/01/2014 Location: United StatesPosts: 925 |
I think that due to Geoffs efforts with the micromite firmware, there are a lot of "newer" features available for the 470 chip right now that were added recently. I am not sure, but I don't think the MMbasic for the 795 has been updated for a while. |
||||
akashh Senior Member ![]() Joined: 19/01/2014 Location: IndiaPosts: 115 |
Hi swissembedded, You system looks very cool! I totally understand the work behind this as I have been developing a similar product called Wattmon using the same processor and FreeRTOS - memory is certainly a challenge with a network stack. Integrating mm basic makes a lot of sense especially for hobbyists such as everyone on this forum since it opens up a wide range of possibilities such as Internet communication. I chose to develop a PHP interpreter instead, but ultimately the goals are the same. I was not able to get much traction here though but I do love the forum and keep following it closely since mm basic is super easy to use and the simple solutions people come up with are inspiring! Wishing you the best with the new product. Edit: link to product: WattmonPRO |
||||
swissembedded Newbie ![]() Joined: 22/11/2015 Location: SwitzerlandPosts: 24 |
Hi Akashh your device look interesting. I like BASIC, people can do great applications with it and it is easy to learn. My vision is that everbody could tweak the application. Especially the editor in the webbrowser should be easy to handle. So I would consider it a energy manager for the people ;-) Dani |
||||
sagt3k![]() Guru ![]() Joined: 01/02/2015 Location: ItalyPosts: 313 |
Hi Swissembedded Outstanding work !! I am very interested for a web editor for Basic. Now I am developing a freeware application for Windows XP/7/10 that allow to do many special things like Arduino including the ability to create TCP <-> UART and then be able to manage Micromite remotely via Port Forwarding etc.But I am very interested later to handle generic COMport through JAVA via browser. Someone could tell me where I can get ideas? Thanks Antony |
||||
Page 1 of 3 ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |