<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Topics tagged with omega2 hardware]]></title><description><![CDATA[A list of topics that have been tagged with omega2 hardware]]></description><link>http://community.onion.io/tags/omega2 hardware</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 17:45:26 GMT</lastBuildDate><atom:link href="http://community.onion.io/tags/omega2 hardware.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 06 Aug 2019 12:40:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Making Omega2 talks with SAMD21 (Arduino Zero)]]></title><description><![CDATA[@Suman-kumar-Jha One more time 
This was the originally installed  '/sbin/yunbridge' file on Omega2(+) :
root@Omega-5BE1:/# cat /sbin/yunbridge
#!/bin/sh
stty -F /dev/ttyS0 2500000 clocal cread cs8 -cstopb -parenb
exec &lt; /dev/ttyS0
exec &gt; /dev/ttyS0
exec 2&gt; /dev/ttyS0
askfirst bin/ash --login

I've modified it because

we can't set either 250000 (ie. 250,000 250 kBaud) or 2500000 (ie 2,500,000 2.5 MBaud) with the stty command
and ttyS0 (UART0) is occupied by the Serial Console on Omega2(+) - so I tried to use ttyS1 (UART1) instead

This is the modified '/sbin/yunbridge' file:
root@Omega-5BE1:/# cat /sbin/yunbridge
#!/bin/sh
stty -F /dev/ttyS1 115200 clocal cread cs8 -cstopb -parenb
exec &lt; /dev/ttyS1
exec &gt; /dev/ttyS1
exec 2&gt; /dev/ttyS1
askfirst bin/ash --login

That's it!
I think 115200 Baud is a good choice. It's good for all - for Omega2, Arduino, Arduino Bridge, Arduino IDE, ...
IMO the serial line speed is not the most important problem in this five-liner script now.

BTW please try it what you want:
root@Omega-5BE1:~# stty -F /dev/ttyS1 250000
stty: invalid argument ‘250000’
Try 'stty --help' for more information.

root@Omega-5BE1:~# stty -F /dev/ttyS1 2500000
stty: /dev/ttyS1: unable to perform all requested operations


root@Omega-5BE1:~# stty -F /dev/ttyS1 115200
root@Omega-5BE1:~# stty -F /dev/ttyS1
speed 115200 baud; line = 0;
-brkint -imaxbel



]]></description><link>http://community.onion.io/topic/3664/making-omega2-talks-with-samd21-arduino-zero</link><guid isPermaLink="true">http://community.onion.io/topic/3664/making-omega2-talks-with-samd21-arduino-zero</guid><dc:creator><![CDATA[György Farkas]]></dc:creator><pubDate>Tue, 06 Aug 2019 12:40:23 GMT</pubDate></item><item><title><![CDATA[[Omega2] Hardware PWM problem]]></title><description><![CDATA[I did this:
PWM0_SEND_DATA0 &lt;- 0xAAAAAAAA (1010101010101....)
PWM0_SEND_DATA1 &lt;- 0xAAAAAAAA (1010101010101....)
Clock 100kHz/2 - 50kHz
And for 1% duty (for example):
PWM0_HDURATION &lt;- 500
PWM0_LDURATION &lt;- 50000-PWM0_HDURATION
It works. I have exactly 10ms step regulation.
My rectification column power regulator is much closer  Thanx!
]]></description><link>http://community.onion.io/topic/2106/omega2-hardware-pwm-problem</link><guid isPermaLink="true">http://community.onion.io/topic/2106/omega2-hardware-pwm-problem</guid><dc:creator><![CDATA[Krzysztof Skiba]]></dc:creator><pubDate>Sun, 04 Jun 2017 11:47:04 GMT</pubDate></item></channel></rss>