Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #479848 > unrolled thread
| Started by | gm <notmy@mail.com> |
|---|---|
| First post | 2017-10-02 17:18 +0200 |
| Last post | 2017-10-06 19:11 -0400 |
| Articles | 20 — 12 participants |
Back to article view | Back to sci.electronics.design
Creating serial or USB interface from standard PC gm <notmy@mail.com> - 2017-10-02 17:18 +0200
Re: Creating serial or USB interface from standard PC edward.ming.lee@gmail.com - 2017-10-02 08:24 -0700
Re: Creating serial or USB interface from standard PC Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-10-02 08:27 -0700
Re: Creating serial or USB interface from standard PC Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2017-10-02 16:42 +0100
Re: Creating serial or USB interface from standard PC gm <notmy@mail.com> - 2017-10-02 18:02 +0200
Re: Creating serial or USB interface from standard PC Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-10-02 09:13 -0700
Re: Creating serial or USB interface from standard PC edward.ming.lee@gmail.com - 2017-10-02 10:13 -0700
Re: Creating serial or USB interface from standard PC edward.ming.lee@gmail.com - 2017-10-02 10:26 -0700
Re: Creating serial or USB interface from standard PC piglet <erichpwagner@hotmail.com> - 2017-10-04 22:16 +0100
Re: Creating serial or USB interface from standard PC "Michael A. Terrell" <mike.terrell@earthlink.net> - 2017-10-11 15:02 -0400
Re: Creating serial or USB interface from standard PC Jasen Betts <jasen@xnet.co.nz> - 2017-10-12 04:37 +0000
Re: Creating serial or USB interface from standard PC Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-02 16:52 +0000
Re: Creating serial or USB interface from standard PC gm <notmy@mail.com> - 2017-10-04 21:38 +0200
Re: Creating serial or USB interface from standard PC mike <ham789@netzero.net> - 2017-10-04 13:06 -0700
Re: Creating serial or USB interface from standard PC Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2017-10-05 08:45 +0000
Re: Creating serial or USB interface from standard PC WangoTango <Asgard24@mindspring.com> - 2017-10-02 17:21 -0400
Re: Creating serial or USB interface from standard PC David Brown <david.brown@hesbynett.no> - 2017-10-03 09:43 +0200
Re: Creating serial or USB interface from standard PC Martin Riddle <martin_ridd@verizon.net> - 2017-10-03 18:25 -0400
Re: Creating serial or USB interface from standard PC Jasen Betts <jasen@xnet.co.nz> - 2017-10-06 20:30 +0000
Re: Creating serial or USB interface from standard PC Martin Riddle <martin_ridd@verizon.net> - 2017-10-06 19:11 -0400
| From | gm <notmy@mail.com> |
|---|---|
| Date | 2017-10-02 17:18 +0200 |
| Subject | Creating serial or USB interface from standard PC |
| Message-ID | <oqtlbi$4i4$1@l01news1.ot.hr> |
Hi to all. Let me explain weird subject text :-) I want to avoid using raspberry because it dindt pass basic tests for app that i need to design. Beside, i have to use HDD so PC is better solution. Anyways, i want to create some electronics that i can use as "GPIO" inputs/outputs but on standard linux based PC. The idea is to set some serial communication ( over some USB2serial adapter ) or directly if possible. This device on serial port should read the state of arduino PIN's and that's all. When the state changes java or python based desktop app will set some action ( print/send mail/record picture etc... ) Ideas ? GM
[toc] | [next] | [standalone]
| From | edward.ming.lee@gmail.com |
|---|---|
| Date | 2017-10-02 08:24 -0700 |
| Message-ID | <fee00b89-ba2f-4474-84c9-a3c82db1db3b@googlegroups.com> |
| In reply to | #479848 |
On Monday, October 2, 2017 at 8:18:15 AM UTC-7, gm wrote: > Hi to all. > Let me explain weird subject text :-) > > I want to avoid using raspberry because it dindt pass basic tests for > app that i need to design. Beside, i have to use HDD so PC is better > solution. > > Anyways, i want to create some electronics that i can use as "GPIO" > inputs/outputs but on standard linux based PC. > > The idea is to set some serial communication ( over some USB2serial > adapter ) or directly if possible. > > This device on serial port should read the state of arduino PIN's and > that's all. When the state changes java or python based desktop app > will set some action ( print/send mail/record picture etc... ) > > Ideas ? > > GM AVR/PIC/ARM/etc. What's your preference? I use RPi just to avoid programing them, even though i know how to do all of them, but it's an extra step to maintain.
[toc] | [prev] | [next] | [standalone]
| From | Lasse Langwadt Christensen <langwadt@fonz.dk> |
|---|---|
| Date | 2017-10-02 08:27 -0700 |
| Message-ID | <3349c275-2a5d-4faa-8ab9-f3d45b1fd8a2@googlegroups.com> |
| In reply to | #479848 |
Den mandag den 2. oktober 2017 kl. 17.18.15 UTC+2 skrev gm: > Hi to all. > Let me explain weird subject text :-) > > I want to avoid using raspberry because it dindt pass basic tests for > app that i need to design. Beside, i have to use HDD so PC is better > solution. > > Anyways, i want to create some electronics that i can use as "GPIO" > inputs/outputs but on standard linux based PC. > > The idea is to set some serial communication ( over some USB2serial > adapter ) or directly if possible. > > This device on serial port should read the state of arduino PIN's and > that's all. When the state changes java or python based desktop app > will set some action ( print/send mail/record picture etc... ) > > Ideas ? the Arduino isn't connected to the PC?
[toc] | [prev] | [next] | [standalone]
| From | Martin Brown <'''newspam'''@nezumi.demon.co.uk> |
|---|---|
| Date | 2017-10-02 16:42 +0100 |
| Message-ID | <oqtmq2$4lo$1@gioia.aioe.org> |
| In reply to | #479848 |
On 02/10/2017 16:18, gm wrote: > Hi to all. > Let me explain weird subject text :-) > > I want to avoid using raspberry because it dindt pass basic tests for > app that i need to design. Beside, i have to use HDD so PC is better > solution. > > Anyways, i want to create some electronics that i can use as "GPIO" > inputs/outputs but on standard linux based PC. I can't help thinking it would easier on a Raspberry pi or one of the many even cheaper unix based Arm evaluation boards that come with plenty of IO pins and a USB driver to let the host PC interact with it. > > The idea is to set some serial communication ( over some USB2serial > adapter ) or directly if possible. > > This device on serial port should read the state of arduino PIN's and > that's all. When the state changes java or python based desktop app > will set some action ( print/send mail/record picture etc... ) > > Ideas ? Otherwise for a one off buy a dongle that does GPIO and comes with a driver that is already debugged. Plenty of them about in the £20-£50 range depending on features. Don't underestimate the effort in making a DIY USB device driver even if you could make the hardware from scratch. If you described what you were trying to do it might be possible to suggest a suitable widget that does it more or less out of the box. -- Regards, Martin Brown
[toc] | [prev] | [next] | [standalone]
| From | gm <notmy@mail.com> |
|---|---|
| Date | 2017-10-02 18:02 +0200 |
| Message-ID | <oqtnu8$591$1@l01news1.ot.hr> |
| In reply to | #479861 |
The task is really simple. Arduino sends impulse when coin acceptor detects correct coin value. PC should print out the bill and take a picture ----------------------------------------- On the other side, barcode scanner should read barcode and if the barcode is correct, program should send trigger to arduino to open the relay. ----------------------------------------- So, you have two systems in one box. Coin acceptor / barcode scanner / printer / relay. Arduino is used for triggering relay and reading coin acceptor and PC for all the rest... ---------------------------------------- I have done the same system with raspberry and it has worked OK but it isn't stable. SD card is additional problem. Anyhow, i want to avoid rsp alike systems. GM On 10/02/2017 05:42 PM, Martin Brown wrote: > On 02/10/2017 16:18, gm wrote: >> Hi to all. >> Let me explain weird subject text :-) >> >> I want to avoid using raspberry because it dindt pass basic tests for >> app that i need to design. Beside, i have to use HDD so PC is better >> solution. >> >> Anyways, i want to create some electronics that i can use as "GPIO" >> inputs/outputs but on standard linux based PC. > > I can't help thinking it would easier on a Raspberry pi or one of the > many even cheaper unix based Arm evaluation boards that come with plenty > of IO pins and a USB driver to let the host PC interact with it. >> >> The idea is to set some serial communication ( over some USB2serial >> adapter ) or directly if possible. >> >> This device on serial port should read the state of arduino PIN's and >> that's all. When the state changes java or python based desktop app >> will set some action ( print/send mail/record picture etc... ) >> >> Ideas ? > > Otherwise for a one off buy a dongle that does GPIO and comes with a > driver that is already debugged. Plenty of them about in the £20-£50 > range depending on features. Don't underestimate the effort in making a > DIY USB device driver even if you could make the hardware from scratch. > > If you described what you were trying to do it might be possible to > suggest a suitable widget that does it more or less out of the box. >
[toc] | [prev] | [next] | [standalone]
| From | Lasse Langwadt Christensen <langwadt@fonz.dk> |
|---|---|
| Date | 2017-10-02 09:13 -0700 |
| Message-ID | <f2e1cadc-8ae9-48fb-802a-cbeb668910f9@googlegroups.com> |
| In reply to | #479875 |
Den mandag den 2. oktober 2017 kl. 18.02.20 UTC+2 skrev gm: > The task is really simple. > > Arduino sends impulse when coin acceptor detects correct coin value. > PC should print out the bill and take a picture > ----------------------------------------- > On the other side, barcode scanner should read barcode and if the > barcode is correct, program should send trigger to arduino to open > the relay. > ----------------------------------------- > > So, you have two systems in one box. > Coin acceptor / barcode scanner / printer / relay. > > Arduino is used for triggering relay and reading coin acceptor and > PC for all the rest... so plug the arduino into the pc, it'll show up as a serialport, done ..
[toc] | [prev] | [next] | [standalone]
| From | edward.ming.lee@gmail.com |
|---|---|
| Date | 2017-10-02 10:13 -0700 |
| Message-ID | <8ae15ab6-b28d-4c5c-9a63-a3a3d9d114e5@googlegroups.com> |
| In reply to | #479875 |
On Monday, October 2, 2017 at 9:02:20 AM UTC-7, gm wrote: > The task is really simple. > > Arduino sends impulse when coin acceptor detects correct coin value. > PC should print out the bill and take a picture > ----------------------------------------- > On the other side, barcode scanner should read barcode and if the > barcode is correct, program should send trigger to arduino to open > the relay. > ----------------------------------------- > > So, you have two systems in one box. > Coin acceptor / barcode scanner / printer / relay. > > Arduino is used for triggering relay and reading coin acceptor and > PC for all the rest... What task can't be done with RPi?
[toc] | [prev] | [next] | [standalone]
| From | edward.ming.lee@gmail.com |
|---|---|
| Date | 2017-10-02 10:26 -0700 |
| Message-ID | <9f8e4420-c6fb-405c-b36c-8767842d5515@googlegroups.com> |
| In reply to | #479875 |
On Monday, October 2, 2017 at 9:02:20 AM UTC-7, gm wrote: > The task is really simple. > > Arduino sends impulse when coin acceptor detects correct coin value. > PC should print out the bill and take a picture > ----------------------------------------- > On the other side, barcode scanner should read barcode and if the > barcode is correct, program should send trigger to arduino to open > the relay. > ----------------------------------------- > > So, you have two systems in one box. > Coin acceptor / barcode scanner / printer / relay. > > Arduino is used for triggering relay and reading coin acceptor and > PC for all the rest... > ---------------------------------------- > > I have done the same system with raspberry and it has worked OK but > it isn't stable. SD card is additional problem. Anyhow, i want to avoid As others pointed out, there are usb hard disks for data. RPi needs a very good power supply to be stable. Perhaps with a PC power supply. Of course, the cleanest solution is an FPGA with USB stack hooking up to the PC, but others might disagree.
[toc] | [prev] | [next] | [standalone]
| From | piglet <erichpwagner@hotmail.com> |
|---|---|
| Date | 2017-10-04 22:16 +0100 |
| Message-ID | <or3j4b$5cs$1@dont-email.me> |
| In reply to | #479875 |
On 02/10/2017 17:02, gm wrote: > The task is really simple. > > Arduino sends impulse when coin acceptor detects correct coin value. > PC should print out the bill and take a picture > ----------------------------------------- > On the other side, barcode scanner should read barcode and if the > barcode is correct, program should send trigger to arduino to open > the relay. > ----------------------------------------- > > So, you have two systems in one box. > Coin acceptor / barcode scanner / printer / relay. > > Arduino is used for triggering relay and reading coin acceptor and > PC for all the rest... > ---------------------------------------- > > I have done the same system with raspberry and it has worked OK but > it isn't stable. SD card is additional problem. Anyhow, i want to avoid > rsp alike systems. > > GM You can get the cheapest-nastiest USB keyboard and hack it for simple I/O. The coin acceptor triggers a keypress and the scroll lock LED triggers the camera. Lot of easy O/S calls to change num/caps/scroll lock state exist and of course keyboard input is even easier to read. piglet
[toc] | [prev] | [next] | [standalone]
| From | "Michael A. Terrell" <mike.terrell@earthlink.net> |
|---|---|
| Date | 2017-10-11 15:02 -0400 |
| Message-ID | <QvmdnUAbYJBQ90PEnZ2dnUU7-KnNnZ2d@earthlink.com> |
| In reply to | #480313 |
piglet wrote: > On 02/10/2017 17:02, gm wrote: >> The task is really simple. >> >> Arduino sends impulse when coin acceptor detects correct coin value. >> PC should print out the bill and take a picture >> ----------------------------------------- >> On the other side, barcode scanner should read barcode and if the >> barcode is correct, program should send trigger to arduino to open >> the relay. >> ----------------------------------------- >> >> So, you have two systems in one box. >> Coin acceptor / barcode scanner / printer / relay. >> >> Arduino is used for triggering relay and reading coin acceptor and >> PC for all the rest... >> ---------------------------------------- >> >> I have done the same system with raspberry and it has worked OK but >> it isn't stable. SD card is additional problem. Anyhow, i want to avoid >> rsp alike systems. >> >> GM > > You can get the cheapest-nastiest USB keyboard and hack it for simple > I/O. The coin acceptor triggers a keypress and the scroll lock LED > triggers the camera. Lot of easy O/S calls to change num/caps/scroll > lock state exist and of course keyboard input is even easier to read. Has anyone used one of these? <http://www.ebay.com/itm/282194123354> No Delay USB Controller to PC Joystick For 2 Pin Rocker Happ Push Button Cable -- Never piss off an Engineer! They don't get mad. They don't get even. They go for over unity! ;-)
[toc] | [prev] | [next] | [standalone]
| From | Jasen Betts <jasen@xnet.co.nz> |
|---|---|
| Date | 2017-10-12 04:37 +0000 |
| Message-ID | <ormrj6$qqf$2@gonzo.alcatraz> |
| In reply to | #481100 |
On 2017-10-11, Michael A. Terrell <mike.terrell@earthlink.net> wrote: > piglet wrote: > > Has anyone used one of these? <http://www.ebay.com/itm/282194123354> > > No Delay USB Controller to PC Joystick For 2 Pin Rocker Happ Push Button > Cable Yeah, inside a pre-assembled usb arcade style joystick Probably not that vendor. These things are popular with the MAME crowd. -- This email has not been checked by half-arsed antivirus software
[toc] | [prev] | [next] | [standalone]
| From | Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> |
|---|---|
| Date | 2017-10-02 16:52 +0000 |
| Message-ID | <oqtqsc$d3u$1@news.datemas.de> |
| In reply to | #479848 |
On a sunny day (Mon, 2 Oct 2017 17:18:10 +0200) it happened gm <notmy@mail.com> wrote in <oqtlbi$4i4$1@l01news1.ot.hr>: >Hi to all. >Let me explain weird subject text :-) > >I want to avoid using raspberry because it dindt pass basic tests for >app that i need to design. Beside, i have to use HDD so PC is better >solution. > >Anyways, i want to create some electronics that i can use as "GPIO" >inputs/outputs but on standard linux based PC. > >The idea is to set some serial communication ( over some USB2serial >adapter ) or directly if possible. > >This device on serial port should read the state of arduino PIN's and >that's all. When the state changes java or python based desktop app >will set some action ( print/send mail/record picture etc... ) > >Ideas ? > >GM I have a PCI card with PC parport connector, gives you many I/O pins, use it to program PICs, test i2c chips etc.. If you have a free PCI slot that is the simplest way, those cards are cheap. Dunno about java and snakes, just use C ;-) In an other case (laptop) I use an USB to serial adaptor, and test for the state of DSR (pin 6)in a script. Only 1 pin for input then. Does an USB harddisk not work on the latest raspberries? Old raspi USB I have is slow shit.
[toc] | [prev] | [next] | [standalone]
| From | gm <notmy@mail.com> |
|---|---|
| Date | 2017-10-04 21:38 +0200 |
| Message-ID | <or3dbk$im1$1@l01news1.ot.hr> |
| In reply to | #479888 |
On 10/02/2017 06:52 PM, Jan Panteltje wrote: > I have a PCI card with PC parport connector, gives you many I/O pins, > use it to program PICs, test i2c chips etc.. > If you have a free PCI slot that is the simplest way, those cards are cheap. > Dunno about java and snakes, just use C ;-) *********** what kind of hw do you use for interface between paralell or serial port and let's say arduino ( atmel ) ? So, idea is to read some value from arduino and send some data from PC to arduino ( impuls ).... Do you have some schematics ? GM
[toc] | [prev] | [next] | [standalone]
| From | mike <ham789@netzero.net> |
|---|---|
| Date | 2017-10-04 13:06 -0700 |
| Message-ID | <or3f25$4lg$1@dont-email.me> |
| In reply to | #480291 |
On 10/4/2017 12:38 PM, gm wrote: > On 10/02/2017 06:52 PM, Jan Panteltje wrote: >> I have a PCI card with PC parport connector, gives you many I/O pins, >> use it to program PICs, test i2c chips etc.. >> If you have a free PCI slot that is the simplest way, those cards are >> cheap. >> Dunno about java and snakes, just use C ;-) > *********** > what kind of hw do you use for interface between paralell or serial port > and let's say arduino ( atmel ) ? > > So, idea is to read some value from arduino and send some data from PC > to arduino ( impuls ).... > > Do you have some schematics ? > > GM It would be much easier to help if you'd supply some info on how many signals you want to monitor and control. Speeds required? Typical parallel port has more outputs than inputs. Go to ebay and order one of the $2 USB to GPIO devices. Start with the EBAY search term "ESP8266"
[toc] | [prev] | [next] | [standalone]
| From | Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> |
|---|---|
| Date | 2017-10-05 08:45 +0000 |
| Message-ID | <or4rf3$non$1@news.datemas.de> |
| In reply to | #480291 |
On a sunny day (Wed, 4 Oct 2017 21:38:35 +0200) it happened gm
<notmy@mail.com> wrote in <or3dbk$im1$1@l01news1.ot.hr>:
>On 10/02/2017 06:52 PM, Jan Panteltje wrote:
>> I have a PCI card with PC parport connector, gives you many I/O pins,
>> use it to program PICs, test i2c chips etc..
>> If you have a free PCI slot that is the simplest way, those cards are cheap.
>> Dunno about java and snakes, just use C ;-)
>***********
>what kind of hw do you use for interface between paralell or serial port
>and let's say arduino ( atmel ) ?
1) I have no Duino...
2) The par port on modern PCs outputs about 3.3V.
Some pins have high current drive capability.
Some pins have reversed logic levels.
3) Here are some examples how I use it,
this controls an ebay frequency synthesizer module:
http://panteltje.com/panteltje/newsflex/download.html#ADF4350_test
this is a part port PIC programmer (design is not mine, just modified it):
http://panteltje.com/panteltje/pic/jppp18/index.html
Normally the par port I/O address is 0x378
In this simple C file you can see how I interface using i2c:
http://panteltje.com/pub/ADF4350_test.c
I use diodes to do sda pulldown, sdcl is hard up/down.
>So, idea is to read some value from arduino and send some data from PC
>to arduino ( impuls )....
>
>Do you have some schematics ?
In ADF4350_test.c there is a wiring diagram.
I have build many of those test circuits, many are on my site too.
So, take care of the currents that can flow, the logic levels (no idea what a Duino does), and
do a web search for PC par port connections and their addresses (control port, and data port).
Write a test routine to toggle and read those pins, use a multimeter or something to check.
Advantage of the PC parport is that you can have very high speed, no unstable USB shit or device renumbering either.
No overhead, just read / write to 0x378 0x379, fast C compiler on same PC, unlimited test resources.
IMNSHO a computer without hardware I/O is quite useless really.
To write to the parport you need to be root, see iopl(3) in the C source.
To be safe not to smoke your par-port (card?) you could use 330 Ohm resistors in series for a start.
If you are using Bloatsoft Widows, then I have no examples.
[toc] | [prev] | [next] | [standalone]
| From | WangoTango <Asgard24@mindspring.com> |
|---|---|
| Date | 2017-10-02 17:21 -0400 |
| Message-ID | <MPG.343c77c7cc66f88098c1dc@news.east.earthlink.net> |
| In reply to | #479848 |
In article <oqtlbi$4i4$1@l01news1.ot.hr>, notmy@mail.com says... > Hi to all. > Let me explain weird subject text :-) > > I want to avoid using raspberry because it dindt pass basic tests for > app that i need to design. Beside, i have to use HDD so PC is better > solution. > > Anyways, i want to create some electronics that i can use as "GPIO" > inputs/outputs but on standard linux based PC. > > The idea is to set some serial communication ( over some USB2serial > adapter ) or directly if possible. > > This device on serial port should read the state of arduino PIN's and > that's all. When the state changes java or python based desktop app > will set some action ( print/send mail/record picture etc... ) > > Ideas ? > > GM Sounds like a keyboard wedge would do the trick, unless the Arduino signals are shorter duration than the debounce time of the wedge.
[toc] | [prev] | [next] | [standalone]
| From | David Brown <david.brown@hesbynett.no> |
|---|---|
| Date | 2017-10-03 09:43 +0200 |
| Message-ID | <oqvf3i$9s3$1@dont-email.me> |
| In reply to | #479848 |
On 02/10/17 17:18, gm wrote: > Hi to all. > Let me explain weird subject text :-) > > I want to avoid using raspberry because it dindt pass basic tests for > app that i need to design. Beside, i have to use HDD so PC is better > solution. > > Anyways, i want to create some electronics that i can use as "GPIO" > inputs/outputs but on standard linux based PC. > <http://www.ftdichip.com/Products/Modules/DevelopmentModules.htm#FT2232H_Mini> They work fine from Linux - we use FTDI modules from python scripts. > The idea is to set some serial communication ( over some USB2serial > adapter ) or directly if possible. > > This device on serial port should read the state of arduino PIN's and > that's all. When the state changes java or python based desktop app > will set some action ( print/send mail/record picture etc... ) > > Ideas ? > > GM > > >
[toc] | [prev] | [next] | [standalone]
| From | Martin Riddle <martin_ridd@verizon.net> |
|---|---|
| Date | 2017-10-03 18:25 -0400 |
| Message-ID | <de38tc9rrp4h7bt230m095nhpaf60r2hfq@4ax.com> |
| In reply to | #479848 |
On Mon, 2 Oct 2017 17:18:10 +0200, gm <notmy@mail.com> wrote: >Hi to all. >Let me explain weird subject text :-) > >I want to avoid using raspberry because it dindt pass basic tests for >app that i need to design. Beside, i have to use HDD so PC is better >solution. > >Anyways, i want to create some electronics that i can use as "GPIO" >inputs/outputs but on standard linux based PC. > >The idea is to set some serial communication ( over some USB2serial >adapter ) or directly if possible. > >This device on serial port should read the state of arduino PIN's and >that's all. When the state changes java or python based desktop app >will set some action ( print/send mail/record picture etc... ) > >Ideas ? > >GM > > Something like a labjack? I had an idea to make a audrino into a labjack type of thing. It's not difficult, most have the ftdi chip on board which makes it USB to IO. Just open a serial port and send commands to read the ports. Cheers
[toc] | [prev] | [next] | [standalone]
| From | Jasen Betts <jasen@xnet.co.nz> |
|---|---|
| Date | 2017-10-06 20:30 +0000 |
| Message-ID | <or8p5p$s42$1@gonzo.alcatraz> |
| In reply to | #479848 |
On 2017-10-02, gm <notmy@mail.com> wrote: > Hi to all. > Let me explain weird subject text :-) > > I want to avoid using raspberry because it dindt pass basic tests for > app that i need to design. Beside, i have to use HDD so PC is better > solution. > > Anyways, i want to create some electronics that i can use as "GPIO" > inputs/outputs but on standard linux based PC. > > The idea is to set some serial communication ( over some USB2serial > adapter ) or directly if possible. > > This device on serial port should read the state of arduino PIN's and > that's all. When the state changes java or python based desktop app > will set some action ( print/send mail/record picture etc... ) > > Ideas ? A usb serial port has 5 inputs and 3 outputs.. all can be reached via ioctl(), but they're kind of slow (~100ms delay) Get one with TTL voltages for easier interfacing, or get an arduino with one on-board (eg: "uno"), but they may not have all the i/o available. -- This email has not been checked by half-arsed antivirus software
[toc] | [prev] | [next] | [standalone]
| From | Martin Riddle <martin_ridd@verizon.net> |
|---|---|
| Date | 2017-10-06 19:11 -0400 |
| Message-ID | <4a3gtchlbm3v51259cet45lnnupfh0os2g@4ax.com> |
| In reply to | #480613 |
On 6 Oct 2017 20:30:49 GMT, Jasen Betts <jasen@xnet.co.nz> wrote: >On 2017-10-02, gm <notmy@mail.com> wrote: >> Hi to all. >> Let me explain weird subject text :-) >> >> I want to avoid using raspberry because it dindt pass basic tests for >> app that i need to design. Beside, i have to use HDD so PC is better >> solution. >> >> Anyways, i want to create some electronics that i can use as "GPIO" >> inputs/outputs but on standard linux based PC. >> >> The idea is to set some serial communication ( over some USB2serial >> adapter ) or directly if possible. >> >> This device on serial port should read the state of arduino PIN's and >> that's all. When the state changes java or python based desktop app >> will set some action ( print/send mail/record picture etc... ) >> >> Ideas ? > >A usb serial port has 5 inputs and 3 outputs.. all can be reached via >ioctl(), but they're kind of slow (~100ms delay) > <snip> True, I've used a USB to serial just for the control I/O's. I didn't need speed, and just needed level translation to toggle a relay and watch an output. worked like a champ. Cheers
[toc] | [prev] | [standalone]
Back to top | Article view | sci.electronics.design
csiph-web