• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Curiosity of a novice

 
Ranch Hand
Posts: 32
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,

 
I child proofed my house but they still get in. Distract them with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic