Home Automation with B4A/B4J

IslamQabel

Active Member
Licensed User
Longtime User
I have to design some android Apps to work with my hardware devices controlled by micro-controller................I need someone that design apps with many different compilers.....anybody can say something?
 

JakeBullet70

Well-Known Member
Licensed User
Longtime User
I have some Apps by B4A that you can control your home devices locally and remotely.....(B4A/B4A)
Unfortunately, i can not design any Apps using B4J......so i need your suggestions....Can i use B4J also? i am programming with C compiler for Micro-controllers and recently, i am programming with B4A......so if i added B4J......do you think that will make my brain confused????:confused::confused::confused::confused::confused::(:(:(o_Oo_O


My brain is always confused... :eek::eek::rolleyes::rolleyes:o_O:confused::D:confused:o_O:eek::rolleyes::eek:
 

JakeBullet70

Well-Known Member
Licensed User
Longtime User
B4J is really much like B4A except the GUI. Allot the the non GUI code is the same.
So I think your non GUI code in B4A can be moved over to B4J.

On a side note, I still sometimes still write DBase II code (DOS) in B4A. :eek::D
And sometimes B4A code in VB.NET (my job) :p:oops:
And then sometimes my C# looks like Java and i think my head might explode! o_O:confused:
 

NJDude

Expert
Licensed User
Longtime User
B4J is really much like B4A except the GUI. Allot the the non GUI code is the same.
So I think your non GUI code in B4A can be moved over to B4J.

On a side note, I still sometimes still write DBase II code (DOS) in B4A. :eek::D
And sometimes B4A code in VB.NET (my job) :p:oops:
And then sometimes my C# looks like Java and i think my head might explode! o_O:confused:

I have one word for you: DECAF. :D
 

Beja

Expert
Licensed User
Longtime User
B4A runs on PCs.. do you want to control your stuff from your desktop computer? if yes:
then why don't you use vb?
 

IslamQabel

Active Member
Licensed User
Longtime User
You are right....but what about controlling your home from the internet? do you think that B4J can build web page to control your home via the internet??
 

Beja

Expert
Licensed User
Longtime User
Hardware block diagram for minimum system to interface android device with triac or relay arrays.
The RF module has built-in MCU than can be programmed in C to accept custom commands through the bluetooth module to send the required outputs at the 4-bit output port, that are directly connected to the 4-bit input port of the relay board.

Copyright by all B4Aers and visitors. :)
 

Attachments

  • homeautomation.png
    homeautomation.png
    16.6 KB · Views: 391
Last edited:

IslamQabel

Active Member
Licensed User
Longtime User
Dear All:
I would like to ask you about possibility of building web server by using B4A in my mobile such that i can access it from any PC or another device connected to the internet ......
Thanks all
 

Beja

Expert
Licensed User
Longtime User
BTW: What specification do you want in the HA controller (number of devices, channels (digital-analog), device
load (how many watts per line) type of load (inductive, conductive...etc).. A/C or DC?
 

IslamQabel

Active Member
Licensed User
Longtime User
Hi DonManfred

I see the example and i found it good. I want to ask another question, do we need to build a web page by Java to interact with the mobile http server?
 

DonManfred

Expert
Licensed User
Longtime User
I see the example and i found it good. I want to ask another question, do we need to build a web page by Java to interact with the mobile http server?

Maybe i dont understand the question and maybe you did not described it correctly.
What exactly you want archieve?
 

IslamQabel

Active Member
Licensed User
Longtime User
i understand that i can build the server on my mobile and access the server from any PC connected to the internet via The IP of my mobile......The question is.....when i type the IP address on the PC browser....what happens? is the corresponding web page appears? or what?
The web page need to be build by Java or it is already built ?
 

Jerez

Active Member
Licensed User
Longtime User
I've a home automation client for Android made with B4a and the controller is a C# app (Insteon and X10) that run over Windows Embedded 8... but i want to migrate to Z-Wave and put all the IA in Android only.

If you found a Z-Wave controller in Java that run on Android, please advise :)
 

Jerez

Active Member
Licensed User
Longtime User
this is an old thread. Create a new thread for you issue.

old thread but a today problematic... i think does not matter the thread "date"
 
Top