Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Curiosity of a novice

 
Ranch Hand
Posts: 32
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
imagine I build this this device that takes in impulses... 0 and 1

but I need an interface with buttons to decide when to throw a 0 or a 1...

would java be a good language to control this?


I'm having difficulty to make this path...

interface to circuit...

if somoene can enlight me, i'd really apreciate it.


Jaime, thanks
 
Rancher
Posts: 436
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is possible to access devices e.g. via USB or other serial connectors. But Java is not a common choice if you want low-level access which may be a strong hint that it is not the best choice (for an arbitrary definition of "best"). At least the service to access the device would typically be written in C (or maybe ... C). Often, especially for simple interfaces, it doesn't make much sense to pull Java into the dependencies then.
 
Jaime Caetano
Ranch Hand
Posts: 32
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so C would be a good choice to create an interface that some how

by clicking his button I will send an impulse to a certain part of my circuit?


where in my circuit would the program be stored?

let's say I got an interface with

Button A
Button B
Button C

each button has a different function in my circuit,

where would the program be stored? in some chip right?

does this matter have a name so I can see it on internet aswell?!

thanks
 
Hauke Ingmar Schmidt
Rancher
Posts: 436
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure I understand how you access your "circuit". Is it some basic electronic (even self burned) connected to your desktop or laptop via a serial port? Or is it something more capable like an Arduino?
 
Jaime Caetano
Ranch Hand
Posts: 32
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hauke, I dont have a circuit yet,

i'm trying to find a way to control a circuit trough a screen interface,

im a Java student, looking for an application of Java programing beside data treatment,

im not an informatic student, im an eletronic student(fresh one) , to give you a clue of my point.

for eg. I want to make some automatic courtains, and I want to close em by cliking the close button on my computer...
so if I could create that java program I would feel a little more realized with all I'm learning.


i've heard about arduino, although I dont know how it works.

can you control a circuit through your computer with arduino?






thanks for reply

 
Hauke Ingmar Schmidt
Rancher
Posts: 436
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arduino is a microcontroller capable of running C programs on board and controlling actuators itself. It would replace any custom made controller (or circuit), at least for prototyping purposes. If you are an electronics student you probably will learn to build specialized controllers yourself. But for building working devices in quite short time Arduino is a nice tool. You could run a web interface directly on the board itself, no desktop needed at runtime. You would control the device via browser then.

But Java would not be involved in this specific scenario.
 
Jaime Caetano
Ranch Hand
Posts: 32
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sweet! thanks for leading me to arduino, i've got some friends learning C,

and they say so far it's pretty simmiliar to Java on the basics at least.

for now, I will still try to get the most return of java programing ;)



thanks a lot for your time, I really appreciate that,

 
Because those who mind don't matter and those who matter don't mind - Seuss. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic